The first two ftp curl threads call back all the time, number 3 and 4 call back once when they are done UNLESS one of the first two threads complete before 3 and 4. If one of the first two complete then one of the still running 3 or 4 curl threads start calling back. This is not the behavior of HTTP which has all 4 concurrent curl threads calling back all the time. Exact same code, different URI's.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Stenberg Sent: Wednesday, June 22, 2011 7:20 AM To: libcurl development Subject: Re: Multiple Easy Interface FTP Threads not calling write function callback when more than 2 active On Mon, 20 Jun 2011, Kable Dan (CDI) wrote: > I am only downloading, using protocols FTP, HTTP, TFTP, and FILE. I am > using IIS under windows 7 as the test HTTP and FTP server. All concurrent > requests go to this server for different files. When I use http as the > protocol, my callback function, writeMemoryCallback is being called for > every thread up to the max 4 all the time. When I use ftp as the protocol, > only the first two threads use the writeMemoryCallback function during the > transfer. Are all four transfers done from the same IIS server? > The other two ftp threads are downloading the file but never call the > callback function until the file has been totally transferred. How do you mean they are downloading but don't call the callback? Where does the data they download end up if they don't call the callback? -- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
