File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ def recv_on_closed_stream(self, previous_state):
330
330
Called when an unexpected frame is received on an already-closed
331
331
stream.
332
332
333
- An endpoint that receives an unexepcted frame should treat it as
333
+ An endpoint that receives an unexpected frame should treat it as
334
334
a stream error or connection error with type STREAM_CLOSED, depending
335
335
on the specific frame. The error handling is done at a higher level:
336
336
this just raises the appropriate error.
@@ -351,7 +351,7 @@ def send_on_closed_stream(self, previous_state):
351
351
352
352
def recv_push_on_closed_stream (self , previous_state ):
353
353
"""
354
- Called when a PUSH_PROMISE frame is received on an already-closed
354
+ Called when a PUSH_PROMISE frame is received on a full stop
355
355
stream.
356
356
357
357
If the stream was closed by us sending a RST_STREAM frame, then we
Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ def test_frames_after_recv_end_will_error(self,
134
134
frame ,
135
135
clear_streams ):
136
136
"""
137
- A stream that is closed by receive END_STREAM will raise
138
- ProtocolError when received unexpected frame.
137
+ A stream that is closed by receiving END_STREAM raises
138
+ ProtocolError when it receives an unexpected frame.
139
139
"""
140
140
c = h2 .connection .H2Connection (client_side = False )
141
141
c .receive_data (frame_factory .preamble ())
@@ -184,8 +184,8 @@ def test_frames_after_send_end_will_error(self,
184
184
frame ,
185
185
clear_streams ):
186
186
"""
187
- A stream that is closed by sending END_STREAM will raise
188
- ProtocolError when received unexpected frame.
187
+ A stream that is closed by sending END_STREAM raises
188
+ ProtocolError when it receives an unexpected frame.
189
189
"""
190
190
c = h2 .connection .H2Connection (client_side = True )
191
191
c .initiate_connection ()
You can’t perform that action at this time.
0 commit comments