Re: Multiple file upload

2011-11-08 Thread Tim Bannister
> Hello, > > Would it be possible to upload (send) multiple files in one call in C++ > without creating the multipart request explicitly ? > Something like in php for example using @file1, @file2, @file3 ...etc “For CURLFORM_FILE the user may send one or more files in one part by providing mult

Multiple file upload

2011-11-08 Thread Dlpnet
Hello, Would it be possible to upload (send) multiple files in one call in C++ without creating the multipart request explicitly ? Something like in php for example using @file1, @file2, @file3 ...etc Thanks --- List admin: http://c

Re: "Server response timeout" after connected to FTP server

2011-11-08 Thread Dan Fandrich
On Tue, Nov 08, 2011 at 09:42:20PM +0100, Marcin Adamski wrote: > I'm sure all above is correct. In main loop I check fd_set and timeout by > libcurl's interface and I always set timeout to maximum 500ms. I don't have > any other fd set in select, because it is a separate, CURL dedicated thread

Re: Re: "Server response timeout" after connected to FTP server

2011-11-08 Thread Marcin Adamski
> Are you sure you're setting the timeouts correctly? i.e. using > milliseconds and not seconds if appropriate, and passing in long values, > not ints? What does your main curl_multi loop look like? I'm sure all above is correct. In main loop I check fd_set and timeout by libcurl's interface and

Re: Re: "Server response timeout" after connected to FTP server

2011-11-08 Thread Dan Fandrich
On Tue, Nov 08, 2011 at 08:35:56PM +0100, Marcin Adamski wrote: > The problem in this particular case is that in tcpdump output I see that my > application/libcurl initialises TCP connection and then immediately finishes > it. There is no FTP request/response sent or received. I can provide tcpdu

Re: Re: "Server response timeout" after connected to FTP server

2011-11-08 Thread Marcin Adamski
> I'm not sure how much these logs show, but I would expect to see the FTP > server respond with at least a 220 banner on connection, and this log > doesn't show that the FTP server is returning anything. libcurl is right > to time out in that case. Can you connect to this server with another > ftp

Re: download thread hung in poll()

2011-11-08 Thread Alex Loukissas
> I will run this experiment and come back with the results. > Initial runs show no network inbound traffic when the download thread is hung on poll. My hunch is still that the issue is due to the fact that 2 threads are trying to do a GET on the same URL. I will try to reproduce with a small pro

Re: "Server response timeout" after connected to FTP server

2011-11-08 Thread Dan Fandrich
On Tue, Nov 08, 2011 at 11:08:11AM +0100, Marcin Adamski wrote: > I'm having a problem with FTP upload. Just after establishing connection to > server, I get "server response timeout". It is weird, because I set large > timeouts (timeout = 0s, connect timeout = 60s, ftpResponseTimeout =

File scheme: read directory

2011-11-08 Thread Patrick Monnerat
I'm planning to replace an FTP access via libCurl by an NFS access (still via libCurl, to reduce source changes). Unfortunately, my application uses FTP to list the content of a directory and this operation is impossible yet with the file:// scheme. Is this just a missing feature ? Or is this "

Re: PATCH: Do not allow multi interface to block trying to perform DNS on interface names

2011-11-08 Thread Jason Glasgow
On Sat, Nov 5, 2011 at 11:11 PM, Jason Glasgow wrote: > On Fri, Nov 4, 2011 at 6:45 PM, Daniel Stenberg wrote: >> >> On Fri, 4 Nov 2011, Jason Glasgow wrote: >> >>> I think it would be clearer to just have two different options. >> >> Clearer? Yes. Breaking old programs? Yes. Acceptable? No. > >

Re: download thread hung in poll()

2011-11-08 Thread Alex Loukissas
> Doesn't this simply "hang" for 1000 milliseconds and then it continues? No, it hangs for a couple minutes. My test scenario is a download of a large number of objects, with total size of approx 15MB. One thread (the one that's hung makes a single call to readData (with the list of all objects),

Re: PROBLEM: libcurl vs. NSS .. 8054 SEC_ERROR_REUSED_ISSUER_AND_SERIAL

2011-11-08 Thread Kamil Dudka
On Tuesday 08 November 2011 12:32:06 martin kucinsky wrote: > from time to time i'm getting SEC_ERROR_REUSED_ISSUER_AND_SERIAL error > while using libcurl. but there are no certificates in NSS database when I > look into it using "certutil -d sql:db_path -L -h all" What is your version of libcur

PROBLEM: libcurl vs. NSS .. 8054 SEC_ERROR_REUSED_ISSUER_AND_SERIAL

2011-11-08 Thread martin kucinsky
hello all, from time to time i'm getting SEC_ERROR_REUSED_ISSUER_AND_SERIAL error while using libcurl. but there are no certificates in NSS database when I look into it using "certutil -d sql:db_path -L -h all" so what certificate it i compared to then? does anybody knows how this works? Than

Re: Using curl_multi interface with epoll (Daniel Stenberg)

2011-11-08 Thread Yehezkel Horowitz
>> I want to use curl_multi interface along with epoll (can't use select since >> I want to perform much more than 1024 requests in parallel). >> >> My problem is that I can't get the "new" sockets that I need to add to the >> epoll_ctl, just the whole set of fds (by using curl_multi_fdset). >Ri

"Server response timeout" after connected to FTP server

2011-11-08 Thread Marcin Adamski
I'm having a problem with FTP upload. Just after establishing connection to server, I get "server response timeout". It is weird, because I set large timeouts (timeout = 0s, connect timeout = 60s, ftpResponseTimeout = 15s). Information about timeout comes from Curl_pp_multi_statemach(str

Re: download thread hung in poll()

2011-11-08 Thread Daniel Stenberg
On Mon, 7 Nov 2011, Alex Loukissas wrote: (gdb) frame 1 #1 0x00561674 in Curl_socket_ready (readfd=20, writefd=-1, timeout_ms=1000) at select.c:215 215 r = poll(pfd, num, pending_ms); (gdb) print pfd $1 = {{fd = 20, events = 195, revents = 0}, {fd = 5811065, events = 0, revents

Re: kill hung test processes

2011-11-08 Thread Daniel Stenberg
On Tue, 8 Nov 2011, Guenter wrote: Since it happens every now and then that we get some hung tests, and then with next test round tons of skipped tests due to stunnel already running and other whoes, I searched a bit for a simple hung killer ... + # SIGKILL to "curl|stunnel" I would prefe