This commit is contained in:
coletdjnz 2024-11-24 11:09:20 +13:00
parent c88909ae47
commit a31b990f46
No known key found for this signature in database
GPG key ID: 91984263BB39894A

View file

@ -7,7 +7,6 @@ import os
import random
import ssl
import threading
import time
from http.server import BaseHTTPRequestHandler
from socketserver import BaseRequestHandler, ThreadingTCPServer
@ -255,9 +254,7 @@ class HTTPProxyTestContext(abc.ABC):
REQUEST_PROTO = None
def http_server(self, server_class, *args, **kwargs):
server = proxy_server(server_class, self.REQUEST_HANDLER_CLASS, *args, **kwargs)
time.sleep(1)
return server
return proxy_server(server_class, self.REQUEST_HANDLER_CLASS, *args, **kwargs)
@abc.abstractmethod
def proxy_info_request(self, handler, target_domain=None, target_port=None, **req_kwargs) -> dict: