Skip to content

Commit c8af376

Browse files
Lukasapgjones
authored andcommitted
Plumb through WindowUpdated
1 parent 455927e commit c8af376

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/asyncio/asyncio-server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from h2.connection import H2Connection
2121
from h2.events import (
2222
ConnectionTerminated, DataReceived, RequestReceived, StreamEnded,
23-
StreamReset
23+
StreamReset, WindowUpdated
2424
)
2525
from h2.errors import ErrorCodes
2626
from h2.exceptions import ProtocolError, StreamClosedError
@@ -66,6 +66,8 @@ def data_received(self, data: bytes):
6666
self.transport.close()
6767
elif isinstance(event, StreamReset):
6868
self.stream_reset(event.stream_id)
69+
elif isinstance(event, WindowUpdated):
70+
self.window_updated(event.stream_id, event.delta)
6971

7072
self.transport.write(self.conn.data_to_send())
7173

0 commit comments

Comments
 (0)