Daniel Stenberg | 1 May 2012 20:25
Picon
Favicon
Gravatar

Re: Setting priority for an easy handle in a multihandle

On Tue, 1 May 2012, Gokhan Sengun wrote:

> For example, send command "USER xxxx" to FTP server, break FTP state machine 
> and return back to multi interface before waiting the response, etc.

That's what it does already...

> Currently processing of a job in multi interface for FTP does USER, PASSWD, 
> PWD and returns and this can take some time to complete if poles of earth 
> are involved in the communication.

If that's what happens now then it is a bug. The FTP code is designed and 
written to be a perfectly fine non-blocking state machine.

Curl_GetFTPResponse() is the main blocking bad guy in the FTP code iirc but it 
isn't used for USER, PASS and PWD.

--

-- 

  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html


Gmane