quic: Add back stream connect condition 76/20676/3
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Tue, 16 Jul 2019 08:58:58 +0000 (10:58 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 17 Jul 2019 15:53:29 +0000 (15:53 +0000)
Type: fix

This is needed for VCL patch in the case the Qsession
handle we connect to is 0. A better way to do this
would be to add a u16 header to the transport_opts,
as session_handles are :
<u16 unused><u16 thread_id><u32 session_index>
But this requires modifying all clients.

Change-Id: If171bcf982eba3bd705b586c9fd4a6c2ad0e114b
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/plugins/quic/quic.c

index 6c1a3c3..39e460e 100644 (file)
@@ -1495,7 +1495,7 @@ quic_connect (transport_endpoint_cfg_t * tep)
   QUIC_DBG (2, "Called quic_connect");
   session_endpoint_cfg_t *sep = (session_endpoint_cfg_t *) tep;
   sep = (session_endpoint_cfg_t *) tep;
-  if (sep->transport_opts)
+  if (sep->port == 0)          /* TODO add mask on transport_opts */
     return quic_connect_new_stream (sep);
   else
     return quic_connect_new_connection (sep);