Re: patch for unordered body and header in re-authentication
Date: Sat, 3 May 2008 13:56:44 +0200 (CEST)
On Fri, 2 May 2008, Jari Urpalainen wrote:
> Sorry Daniel, not a test (at least yet) but attached the second proposal to
> fix the bug. So I've been studying the case (and the code) more thoroughly
> and have finally located the culprit (and yes it is indeed simple once you
> really get it). So this is about a race condition between writing and
> reading. So when you have a body and you write it to the server within a
> "digest session" and the server declines the request by a 401 response
> (stale session), the keepon flag will stay with the KEEP_WRITE bit set if
> the read stream is not read again second time (small body which fits into a
> single writebuffer) before interpreting the 401 response.
Given this description, it gives me the feeling you may in fact suffer from
effects of the bug we're working on in this bug report:
Does the "rewind-2.patch" patch in there make any difference to you?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-05-03