cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: timeouts

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 28 Aug 2009 11:52:59 +0200 (CEST)

On Fri, 21 Aug 2009, Paul Harris wrote:

> * the proxy responds asking for NTLM auth, and my app never sends it,
> instead it continues to send the original POST.

Do you have NTLM explicitly enabled, or do you allow several auth types?

> * the proxy responds asking for NTLM, my app starts to send out the header,
> and ... nothing happens.

When you said "my app starts to send" you mean that libcurl sends the header?
If so, does it send the entire request or just "the header"? If the latter,
what is "the header" in this context?

> * it tried to post earlier, saw the NTLM request, and now ... *
> CURL: INFO Re-using existing connection! (#0) with host 10.0.250.1
> CURL: INFO Connected to 10.0.250.1 (10.0.250.1) port 80 (#0)
> CURL: INFO Proxy auth using NTLM with user 'username'
> CURL: => Send header
> * nothing happens for a minute, at which point my app gives up *

Did the previous request on that connection work fine?

> I use multihandles so that I can cancel the upload when I want, but I always
> open and close fresh handles whenever I do something with curl.

Fresh handles don't prevent connection re-uses. libcurl keeps the connection
pool within the multi handle, so you can't "escape" connection re-use by doing
new easy handles to use.

> What can I try to do ? I wouldn't mind spending a little effort debugging
> this issue, although I'm not able to do a lot on the computer in question.

Well, I would like to see a repeatable behavior. Exactly what is done to make
the problem trigger. Then I would like to attempt to repeat such behavior with
curl's test suite or possibly a proxy/server that is accessible to me.

In regards to the debugging this, it's just normal debugging: figure out what
it does when it "hangs" and then backtrack to why it comes to that situation
and what it should do instead to not end up there...

-- 
  / daniel.haxx.se
Received on 2009-08-28