Skip to content

Commit aa27840

Browse files
committed
Update diagram.
1 parent 4191d0a commit aa27840

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/protocol/http1/connection.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def initialize(stream, persistent: true, state: :idle)
9191
# │ ▼ └───┬────┘ ▼
9292
# │ ┌──────────┐ │ ┌──────────┐
9393
# │ │ half │ │ │ half │
94-
# │ │ closed │ │ │ closed │
95-
# │ │ (remote) │ │ │ (local) │
94+
# │ │ closed │ │ send R / │ closed │
95+
# │ │ (remote) │ │ recv R │ (local) │
9696
# │ └────┬─────┘ │ └─────┬────┘
9797
# │ │ │ │
9898
# │ │ send ES / │ recv ES / │
@@ -104,7 +104,8 @@ def initialize(stream, persistent: true, state: :idle)
104104
# persistent └────────┘
105105
# ```
106106
#
107-
# - `ES`: the body was fully received or sent (end of stream)
107+
# - `ES`: the body was fully received or sent (end of stream).
108+
# - `R`: the connection was closed unexpectedly (reset).
108109
#
109110
# State transition methods use a trailing "!".
110111
attr_accessor :state

0 commit comments

Comments
 (0)