Skip to content

Commit

Permalink
Update diagram.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Sep 23, 2024
1 parent 4191d0a commit aa27840
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/protocol/http1/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def initialize(stream, persistent: true, state: :idle)
# │ ▼ └───┬────┘ ▼
# │ ┌──────────┐ │ ┌──────────┐
# │ │ half │ │ │ half │
# │ │ closed │ │ │ closed │
# │ │ (remote) │ │ │ (local) │
# │ │ closed │ │ send R / │ closed │
# │ │ (remote) │ │ recv R │ (local) │
# │ └────┬─────┘ │ └─────┬────┘
# │ │ │ │
# │ │ send ES / │ recv ES / │
Expand All @@ -104,7 +104,8 @@ def initialize(stream, persistent: true, state: :idle)
# persistent └────────┘
# ```
#
# - `ES`: the body was fully received or sent (end of stream)
# - `ES`: the body was fully received or sent (end of stream).
# - `R`: the connection was closed unexpectedly (reset).
#
# State transition methods use a trailing "!".
attr_accessor :state
Expand Down

0 comments on commit aa27840

Please sign in to comment.