Allow http_connect to create a response for CONNECT request so that connection to server be postponed in upstream mode.

This commit is contained in:
Biping Meng 2017-07-26 18:19:38 +08:00
parent d409a6c09a
commit 1004460ba6

View File

@ -217,6 +217,7 @@ class HttpLayer(base.Layer):
return False return False
def handle_upstream_connect(self, f): def handle_upstream_connect(self, f):
if not f.response:
self.establish_server_connection( self.establish_server_connection(
f.request.host, f.request.host,
f.request.port, f.request.port,