Skip to content

Commit

Permalink
fixed examples to use string selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Aperence committed Dec 13, 2023
1 parent 3be2b77 commit 6a17a74
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions examples/http3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
from aioquic.quic.events import QuicEvent
from aioquic.quic.logger import QuicFileLogger
from aioquic.tls import CipherSuite, SessionTicket
from aioquic.quic.congestion.reno import RenoCongestionControl
from aioquic.quic.congestion.cubic import CubicCongestionControl

try:
import uvloop
Expand Down Expand Up @@ -557,13 +555,6 @@ async def main(
configuration.quic_logger = QuicFileLogger(args.quic_log)
if args.secrets_log:
configuration.secrets_log_file = open(args.secrets_log, "a")
if args.congestion_control:
if args.congestion_control == "cubic":
configuration.congestion_control = CubicCongestionControl()
elif args.congestion_control == "reno":
configuration.congestion_control = RenoCongestionControl()
else:
raise Exception("Invalid congestion control algorithm")
if args.session_ticket:
try:
with open(args.session_ticket, "rb") as fp:
Expand Down
10 changes: 0 additions & 10 deletions examples/http3_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
from aioquic.quic.events import DatagramFrameReceived, ProtocolNegotiated, QuicEvent
from aioquic.quic.logger import QuicFileLogger
from aioquic.tls import SessionTicket
from aioquic.quic.congestion.reno import RenoCongestionControl
from aioquic.quic.congestion.cubic import CubicCongestionControl

try:
import uvloop
Expand Down Expand Up @@ -606,14 +604,6 @@ async def main(
# load SSL certificate and key
configuration.load_cert_chain(args.certificate, args.private_key)

if args.congestion_control:
if args.congestion_control == "cubic":
configuration.congestion_control = CubicCongestionControl()
elif args.congestion_control == "reno":
configuration.congestion_control = RenoCongestionControl()
else:
raise Exception("Invalid congestion control algorithm")

if uvloop is not None:
uvloop.install()

Expand Down

0 comments on commit 6a17a74

Please sign in to comment.