diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-13 08:41:53 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-14 15:22:46 +0200 |
commit | b73f1e058cc73aa72646e248cd295473dfc8d93e (patch) | |
tree | 99baf8f576716a22fe708b038ea5d14efecc380c | |
parent | 9102e8ef9ee1a96053986945adb9d1d62cea2489 (diff) | |
download | curl-b73f1e058cc73aa72646e248cd295473dfc8d93e.tar.gz |
multi: getsock improvements for QUIC connecting
-rwxr-xr-x | lib/multi.c | 8 |
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++; } } |