cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re[4]: Working with curl connections as with sockets.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 9 May 2008 23:32:09 +0200 (CEST)

On Tue, 6 May 2008, tetetest tetetest wrote:

> For example, in telnet.c (lines 1295-1303):
>
> while(nread--) {
> outbuf[0] = *buffer++;
> out_count = 1;
> if(outbuf[0] == CURL_IAC)
> outbuf[out_count++] = CURL_IAC;
>
> Curl_write(conn, conn->sock[FIRSTSOCKET], outbuf,
> out_count, &bytes_written);
> }

Right, there are three places in the telnet code that do the same identical
loop. But this doesn't busy-loop really, it "just" forgets/ignores to send the
data it fails to send due to EAGAIN...

Anyone interested in fixing this?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-05-09