File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -919,10 +919,14 @@ def end_stream(self, stream_id: int) -> None:
919919 :param stream_id: The ID of the stream to end.
920920 :type stream_id: ``int``
921921 :returns: Nothing
922+ :raises NoSuchStreamError: If the stream ID does not correspond to a
923+ known stream and is higher than the current maximum stream ID.
924+ :raises StreamClosedError: If the stream ID corresponds to a stream
925+ that has been closed.
922926 """
923927 self .config .logger .debug ("End stream ID %d" , stream_id )
924928 self .state_machine .process_input (ConnectionInputs .SEND_DATA )
925- frames = self .streams [ stream_id ] .end_stream ()
929+ frames = self ._get_stream_by_id ( stream_id ) .end_stream ()
926930 self ._prepare_for_sending (frames )
927931
928932 def increment_flow_control_window (self , increment : int , stream_id : int | None = None ) -> None :
You can’t perform that action at this time.
0 commit comments