aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-07-16 10:58:58 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-07-17 15:53:29 +0000
commitf9a46854ac99301b97a9e1843e2153578a930a98 (patch)
treea5b9b0f3a8f67ba8ded95afbde343724b8013a65 /src/plugins
parent9529feb4525dfd13e5636640083361256121d275 (diff)
quic: Add back stream connect condition
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>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/quic/quic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index 6c1a3c37bd5..39e460e1ac8 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -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);