calling curl_multi_cleanup reusing a detached, cleaned easy handle

2012-09-25 Thread Sam Deane
doing (or not doing). This is on OS X 10.8 with libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 sam deane / @samdeane / elegantchaos.com / @elegantchaoscom / mac and ios software development --- List admin: http://cool.haxx.se/lis

Errors/crashes with FTP using multi interface?

2013-02-04 Thread Sam Deane
multi handle protected by a single serial queue, so that no two operations on the multi should ever occur simultaneously. Easy handles are potentially set up on other threads, but aren't touched once they are handed off to the multi. This problem is a real blocker for us! sam deane / @sam

Re: Errors/crashes with FTP using multi interface?

2013-02-07 Thread Sam Deane
where an upload/download simply failed to finish. This prevented us from confirming whether the crash was still there. I'm not working on the code this week (it's a contracting job), but I'll look at it again next week, with the latest release version and/or the trunk version. Ch

Re: Errors/crashes with FTP using multi interface?

2013-02-13 Thread Sam Deane
On 7 Feb 2013, at 23:07, Nick Zitzmann wrote: > f you get any more stalls with the latest code, could you share a stack trace > sample when the stall occurs, or (even better) a sample project that > reproduces the problem? I've only noticed one stall recently that wasn't > caused by the connec

Re: Errors/crashes with FTP using multi interface?

2013-02-13 Thread Sam Deane
> One thing that's a bit weird is that at the point that we get stuck, > curl_multi_socket_action seems to return a running count of 1, then of 0, > then of 1, and so on... > I've realised that this was a red herring - there are two multis alive at that point in the test, and the timer for ea

Re: Errors/crashes with FTP using multi interface?

2013-02-14 Thread Sam Deane
On 13 Feb 2013, at 22:51, Daniel Stenberg wrote: > You don't need to convert anything to our "standard test format", but if you > want us to really be able to help you debug this then you must help us repeat > the problem. The easiest way to do that is for you to write a new and > stand-alone

Re: Errors/crashes with FTP using multi interface?

2013-02-14 Thread Sam Deane
On 7 Feb 2013, at 23:07, Nick Zitzmann wrote: > If you get any more stalls with the latest code, could you share a stack > trace sample when the stall occurs, or (even better) a sample project that > reproduces the problem? I've only noticed one stall recently that wasn't > caused by the conne

Re: Errors/crashes with FTP using multi interface?

2013-03-28 Thread Sam Deane
On 13 Feb 2013, at 22:51, Daniel Stenberg wrote: > You don't need to convert anything to our "standard test format", but if you > want us to really be able to help you debug this then you must help us repeat > the problem. The easiest way to do that is for you to write a new and > stand-alone

Re: Errors/crashes with FTP using multi interface?

2013-03-28 Thread Sam Deane
A follow-up to the message I just sent. I've managed to strip out quite a bit of extraneous stuff from the example I sent earlier. This one is more compact, and still crashes. multi-gcd-crashtest.c Description: Binary data Critical ingredients seem to be: Using FTP. Setting CURLOPT_POSTQ

Re: Errors/crashes with FTP using multi interface?

2013-03-28 Thread Sam Deane
htest-wait.c Description: Binary data sam deane / @samdeane | elegantchaos.com / @elegantchaoscom | mac and ios software development --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se

Re: Errors/crashes with FTP using multi interface?

2013-03-29 Thread Sam Deane
On 28 Mar 2013, at 22:15, Daniel Stenberg wrote: > 1. You didn't eliminate gcd completely. I had to remove a bunch of more uses. I didn't claim to have eliminated GCD. I said I'd eliminated GCD dispatch sources - which had been one of the things we were wondering about, because of the way they

Re: Errors/crashes with FTP using multi interface?

2013-04-08 Thread Sam Deane
ve fixed the test case for me (unsurprisingly), and also to have fixed all of our original issues. Many thanks for your help, - Sam - sam deane / @samdeane | elegantchaos.com / @elegantchaoscom | mac and ios software development

ftp upload with absolute paths

2013-04-10 Thread Sam Deane
ch implies that it ought to work. And we'd rather not require a special case to massage our URLs if we can avoid it. I've enclosed a small test program which illustrates the problem - assuming that you point it at a suitable test server of course. upload-root.c Description: B

SFTP transcript

2013-04-10 Thread Sam Deane
ernal logging. sam deane / @samdeane | elegantchaos.com / @elegantchaoscom | mac and ios software development --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: SFTP transcript

2013-04-10 Thread Sam Deane
essentially still a text based protocol, just tunnelled over ssh. If that's not the case, then I can see the problem :) I'm up for adding the human-readable stuff, but I'll have to have a chat with the guys I'm working with and see if they want me to do it. Cheers. - Sam -

Error codes from SFTP

2013-04-10 Thread Sam Deane
ut it doesn't appear to be used for anything else with SFTP. Have enclosed a small patch illustrating what I mean. It's probably in the wrong format (sorry), but I can clean it up and send you a proper patch if you think it's a sensible approach. patch.diff Description: Binary

Re: SFTP transcript

2013-04-10 Thread Sam Deane
On 10 Apr 2013, at 21:13, Daniel Stenberg wrote: > On Wed, 10 Apr 2013, Sam Deane wrote: > >> Ah yeah, I guess that makes sense. I was fooled by the existence of the >> quote commands (chmod/rm/etc) into thinking of it as essentially still a >> text based protocol, jus

Re: Error codes from SFTP

2013-04-10 Thread Sam Deane
On 10 Apr 2013, at 23:30, Dan Fandrich wrote: > sshc->quote_path2 should be NULL whenever it's not used, and it always needs > to > be freed whenever it's non-NULL, so you should be able to remove free2 > altogether > and always call Curl_safefree on it. Ah yes, I was going to ask about that.

Re: Error codes from SFTP

2013-04-11 Thread Sam Deane
y also be able to suggest some further improvements or simplifications - feel free to do so and I'll try to apply them. patch.diff Description: Binary data Haven't updated the docs yet, but I will do so once we're fairly sure it's working. - Sam - sam

Re: ftp upload with absolute paths

2013-04-14 Thread Sam Deane
On 12 Apr 2013, at 21:57, Daniel Stenberg wrote: > commit 61d259f95045c was just pushed with a fix for this. Thanks for the > report! Cheers Daniel! sam deane / @samdeane | elegantchaos.com / @elegantchaoscom | mac and ios software devel

FTP upload stall?

2013-05-13 Thread Sam Deane
's a problem that someone else can verify in the meantime. Cheers, - Sam - sam deane / @samdeane | elegantchaos.com / @elegantchaoscom | mac and ios software development --- List admin: http://cool.haxx.se/list/listinfo/curl-libr

Re: Error codes from SFTP

2013-05-13 Thread Sam Deane
27;m not entirely sure where to find out what these various tests are and what might be failing (I thought each one might be a file in tests/libtest/*.c, but not all of the test numbers seem to correspond to one of these). Any pointers welcome on that front. Cheers. - Sam - sam deane / @samdean

Re: FTP upload stall?

2013-05-14 Thread Sam Deane
On 14 May 2013, at 17:18, Daniel Stenberg wrote: >> We've been getting a problem with our unit tests where FTP uploads using >> curl_multi were stalling. > > Multi or easy makes no difference internally these days! Good point. Our layer on top (https://github.com/karelia/ConnectionKit inciden