aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/multi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index e5c483c56..37c4e55a5 100755
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -832,7 +832,13 @@ static int waitconnect_getsock(struct connectdata *conn,
for(i = 0; i<2; i++) {
if(conn->tempsock[i] != CURL_SOCKET_BAD) {
sock[s] = conn->tempsock[i];
- rc |= GETSOCK_WRITESOCK(s++);
+ rc |= GETSOCK_WRITESOCK(s);
+#ifdef ENABLE_QUIC
+ if(conn->transport == TRNSPRT_QUIC)
+ /* when connecting QUIC, we want to read the socket too */
+ rc |= GETSOCK_READSOCK(s);
+#endif
+ s++;
}
}