2727 SHUT_RDWR ,
2828 error ,
2929 socket ,
30- SOCK_DGRAM ,
3130 SOCK_STREAM ,
3231)
3332from os import makedirs
3433from os .path import join
3534from weakref import ref
3635from warnings import simplefilter
37- from concurrent .futures import ThreadPoolExecutor
3836
3937import flaky
4038
@@ -4319,8 +4317,8 @@ def verify_cookie(ssl, cookie):
43194317 c = Connection (c_ctx )
43204318 c .set_connect_state ()
43214319
4322- # These are mandatory, because openssl can't guess the MTU for a memory bio and
4323- # will produce a mysterious error if you make it try.
4320+ # These are mandatory, because openssl can't guess the MTU for a memory
4321+ # bio and will produce a mysterious error if you make it try.
43244322 c .set_ciphertext_mtu (1500 )
43254323 s .set_ciphertext_mtu (1500 )
43264324
@@ -4336,7 +4334,8 @@ def pump_membio(label, source, sink):
43364334 # Gross hack: if this is a ClientHello, save it so we can find it
43374335 # later. See giant comment above.
43384336 try :
4339- # if ContentType == handshake and HandshakeType == client_hello:
4337+ # if ContentType == handshake and HandshakeType ==
4338+ # client_hello:
43404339 if chunk [0 ] == 22 and chunk [13 ] == 1 :
43414340 nonlocal latest_client_hello
43424341 latest_client_hello = chunk
@@ -4347,8 +4346,8 @@ def pump_membio(label, source, sink):
43474346 return True
43484347
43494348 def pump ():
4350- # Raises if there was no data to pump, to avoid infinite loops if we aren't
4351- # making progress.
4349+ # Raises if there was no data to pump, to avoid infinite loops if
4350+ # we aren't making progress.
43524351 assert pump_membio ("s -> c" , s , c ) or pump_membio ("c -> s" , c , s )
43534352
43544353 c_handshaking = True
0 commit comments