|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1854175 ] Digest proxy auth with CURLOPT_READFUNCTION fails / behavior
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 08 Jan 2008 02:20:40 -0800
Bugs item #1854175, was opened at 2007-12-19 16:24
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
We set:
curl_easy_setopt(curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
and use a CURLOPT_READFUNCTION.
We use squid or ISA server as a proxy with Digest authentication enabled.
There are two things that happen number (2) depends on timing.
(1)
Curl then re-tries with digest authentication and succeeds.
The problem here is that curl rewinds the data stream and yet still sends all the data -- plus the bit it sent before the rewind. See case1.log
(2) Like (1) except the proxy server closes the connection as soon as it realises that curl is sending more post data than it should, the request sequence then ends in a failure. This is harder to reproduce, and in fact is far more prevalent on an slow or loaded machine. See case2.log
Because we see (2) quite often I have compiled a patch, which passes the unit tests I have run. The patch may not be in the correct place, and may not be proper as I don't have a full understanding of how the flags work.
RCS file: /cvsroot/3rdParty/curl-7.17.0/lib/transfer.c,v
See with_patch.log
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
Ok, with #1850730 just closed, is the issue still happening for you?
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Ok, so let's focus on 1850730 first then. Can you provide us with a better
----------------------------------------------------------------------
Comment By: Spacen Jasset (sjasset)
Message:
Hmm. Bug 1850730 isn't the same, but actually they are closely related,
----------------------------------------------------------------------
Comment By: Spacen Jasset (sjasset)
Message:
I will produce some debug logs.
>And no, the "2007-12-20 15:59" patch doesn't make sense since in
This is true, but the flag isn't cleared when calling perhapsrewind in
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Isn't this bug report just a variation/duplicate of #1850730 ?
And no, the "2007-12-20 15:59" patch doesn't make sense since in
I'm looking at your two logs from case 1 and case 2 but I have a very hard
----------------------------------------------------------------------
Comment By: Spacen Jasset (sjasset)
Message:
We're not using the following patch, which is more reasonable. KEEP_WRITE
RCS file: /cvsroot/3rdParty/curl-7.17.0/lib/transfer.c,v
----------------------------------------------------------------------
Comment By: Spacen Jasset (sjasset)
Message:
Unfortunatly, the patch introduces serious problems when not using a proxy
The original problem still remains.
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info