cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: FTP Upload problems with Multi interface

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 10 Nov 2008 19:40:55 +0100 (CET)

On Mon, 10 Nov 2008, Andreas Wurf wrote:

> Just a hint please from your site: What is the easiest way to
> programmatically dump the contents/state of an easy handle?

Internally, the data structures of the multi interface are:

'struct Curl_multi' is the root multi object and it holds a list of 'struct
Curl_one_easy' structs, one for each added easy handle.

Within each 'struct Curl_one_easy' there's a 'state' field that describes in
what state the handle is and that state decides a lot of what is going on with
that handle at that moment.

Each 'struct Curl_one_easy' also has a field called 'easy_handle' that is a
'struct SessionHandle *' which is the good old easy handle known from the easy
interface and a 'easy_conn' field which is a pointer to the 'struct
connectdata' for the particular connection in use right now.

> Behavioral Update: Talking to an Microsoft FTP Server produces the hang on
> nearly every test run - and is significantly slower than ProFTPD on Ubuntu
> (who wonders? ;-)

So perhaps it is timing-related somehow then... Any chance you could give me
an account privately to try out stuff against such a server?

-- 
  / daniel.haxx.se
Received on 2008-11-10