curl-library
RE: WSASend returns WSAENOTCONN using multi-socket interface
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 29 Oct 2017 13:17:01 +0100 (CET)
Date: Sun, 29 Oct 2017 13:17:01 +0100 (CET)
On Sun, 29 Oct 2017, Luigi Pomili wrote:
>> curl first calls connect() and waits for a successful connect to complete
>> before it tries to send, if you're using a TCP-based client.
> Can you help me find where the check to be sure that the connect has been
> completed is?
In the multi state machine, the handle is in state CURLM_STATE_WAITCONNECT
while waiting for the connect to complete. (multi.c:1579 and below)
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-10-29