aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-13 08:41:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-14 23:14:12 +0200
commit437bf10cade7cdb8b946261114ee309c6796682c (patch)
tree3f128845616fad406d3163491e267d04e036df29
parent5848f27594284b93676087b06f70b015c4beeee0 (diff)
multi: getsock improvements for QUIC connecting
-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++;
}
}