This commit is contained in:
coletdjnz 2024-07-14 12:09:33 +12:00
parent 4b3fd5f833
commit a0ca9dc2e4
No known key found for this signature in database
GPG Key ID: 91984263BB39894A

View File

@ -4,7 +4,6 @@
import functools
import json
import os
import platform
import random
import ssl
import threading
@ -241,9 +240,11 @@ def proxy_server(proxy_server_class, request_handler, bind_ip=None, **proxy_serv
yield f'{bind_address}:{server_port}'
finally:
server.shutdown()
server.server_close()
server_thread.join()
class HTTPProxyTestContext(abc.ABC):
REQUEST_HANDLER_CLASS = None
REQUEST_PROTO = None