Skip to content

Commit

Permalink
http3_client.py: correct error code for connection close
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Vranek authored and jlaine committed Dec 30, 2021
1 parent fb3a0b2 commit 9e360a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/http3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from aioquic.asyncio.client import connect
from aioquic.asyncio.protocol import QuicConnectionProtocol
from aioquic.h0.connection import H0_ALPN, H0Connection
from aioquic.h3.connection import H3_ALPN, H3Connection
from aioquic.h3.connection import H3_ALPN, ErrorCode, H3Connection
from aioquic.h3.events import (
DataReceived,
H3Event,
Expand Down Expand Up @@ -402,6 +402,7 @@ async def run(

# process http pushes
process_http_pushes(client=client, include=include, output_dir=output_dir)
client._quic.close(error_code=ErrorCode.H3_NO_ERROR)


if __name__ == "__main__":
Expand Down

0 comments on commit 9e360a5

Please sign in to comment.