Skip to content

Commit

Permalink
Bug 1639458 [wpt PR 23705] - [QuicTransport] Address comments in pull…
Browse files Browse the repository at this point in the history
…/22844, a=testonly

Automatic update from web-platform-tests
[QuicTransport] Address comments in pull/22844 (#23705)

* [QuicTransport] Address comments in pull/22844

Address comments provided in
web-platform-tests/wpt#22844.
--

wpt-commits: 6e5e590ef6d34a2cdbc04bbc493d34e482db1d77
wpt-pr: 23705
  • Loading branch information
yutakahirano authored and moz-wptsync-bot committed May 27, 2020
1 parent 56372a0 commit 78eede8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ def quic_event_received(self, event: QuicEvent) -> None:
isinstance(event, StreamDataReceived) and
event.stream_id == 2):
# client indication process
prefix = 'Client indication error: '
self.client_indication_data += event.data
if len(self.client_indication_data) > 65535:
raise Exception('too large data for client indication')
if event.end_stream:
prefix = 'Client inditation error: '
self.process_client_indication()
if self.is_closing_or_closed():
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ async def notify_pass(connection: QuicConnectionProtocol):
writer.write_eof()


# Verifies that the client indication sent by the client is correct. Creates
# a unidirectional stream containing "PASS" when the check finishes
# sucessfully.
def handle_client_indication(connection: QuicConnectionProtocol,
origin: str, query: Dict[str, str]):
logging.log(logging.INFO, 'origin = %s, query = %s' % (origin, query))
Expand Down

0 comments on commit 78eede8

Please sign in to comment.