cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET