From 437bf10cade7cdb8b946261114ee309c6796682c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 13 Aug 2019 08:41:53 +0200 Subject: multi: getsock improvements for QUIC connecting --- lib/multi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') 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++; } } -- cgit v1.2.3