python - Where is the do_CONNECT method in goagent being called? -
i reading version of goagent, don't know do_connect method being called.
class gaeproxyhandler(basehttpserver.basehttprequesthandler): ... def do_connect(self): ...
the same method in following page not being called, either. click here
yes, if search "do_connect", nothing, search "http method connect"
gaeproxyhandler's base class basehttprequesthandler, code may written in basehttprequesthandler
if want run proxy, should run following code:
server = localproxyserver((common.listen_ip, common.listen_port), gaeproxyhandler) server.serve_forever()
so know server may write code calling method do_connect now.
and let's see backtrace, does.
file "e:\python33\lib\threading.py", line 616, in _bootstrap self._bootstrap_inner() file "e:\python33\lib\threading.py", line 639, in _bootstrap_inner self.run() file "e:\python33\lib\threading.py", line 596, in run self._target(*self._args, **self._kwargs) file "e:\python33\lib\socketserver.py", line 610, in process_request_thread self.finish_request(request, client_address) file "e:\python33\lib\socketserver.py", line 345, in finish_request self.requesthandlerclass(request, client_address, self) file "e:\python33\lib\socketserver.py", line 666, in __init__ self.handle() file "e:\python33\lib\http\server.py", line 400, in handle self.handle_one_request() file "e:\python33\lib\http\server.py", line 388, in handle_one_request method() file "e:\eclipse\workspace\goagent\src\goagent-local\proxy.py", line 1758, in **do_connect**
see last do_connect?
Comments
Post a Comment