cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: bagder: curl/ares ares_process.c,1.10,1.11

From: Gisle Vanem <giva_at_bgnett.no>
Date: Fri, 30 Jul 2004 16:19:18 +0200

> @@ -143,16 +144,16 @@
> /* Can't allocate iovecs; just send the first request. */
> sendreq = server->qhead;
>
> - count = send(server->tcp_socket, sendreq->data, sendreq->len, 0);
> + scount = send(server->tcp_socket, sendreq->data, sendreq->len, 0);

I fail to see the point of the else-part. If allocating N iovecs fails, we're toast
anyway. send() may allocate process memory too. And later on anyway when
the answers should be processed. Is there a story behind this?

--gv
Received on 2004-07-29