use flow.id to link websocket + handshake flows

This commit is contained in:
Thomas Kriechbaumer 2017-03-10 19:37:18 +01:00
parent b1dd86d7ae
commit 49e0f23848

View File

@ -140,7 +140,8 @@ class WebSocketLayer(base.Layer):
def __call__(self):
self.flow = WebSocketFlow(self.client_conn, self.server_conn, self.handshake_flow, self)
self.handshake_flow.metadata['websocket_flow'] = self.flow
self.flow.metadata['websocket_handshake'] = self.handshake_flow.id
self.handshake_flow.metadata['websocket_flow'] = self.flow.id
self.channel.ask("websocket_start", self.flow)
client = self.client_conn.connection