cURL / Mailing Lists / curl-library / Single Mail


Re: Proper way to convert ssh.c to non-blocking

From: James Housley <>
Date: Sun, 10 Jun 2007 19:54:45 -0400

On Jun 10, 2007, at 5:03 PM, Daniel Stenberg wrote:
>> Would the same be done for connect?
> For the connect phase, you can view the ftp.c example for how it
> does it. The same function will simply be called repeatedly until
> it sets *done = TRUE.

The specific question is during connect, how do you return to the top
level of curl when a call returns EAGAIN. It looks like the ftp
state machine stays looping, even while waiting for data during connect.


/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------     The Power to Serve
In theory there is no difference between theory and practice.
In practice there is no similarity.
       -- From the "I wish I'd said that" archives.
Received on 2007-06-11