cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2080222 ] race condition while POSTing to HTTP/1.0 servers

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 28 Aug 2008 09:44:08 +0000

Bugs item #2080222, was opened at 2008-08-28 10:45
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2080222&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: bad behaviour
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: vila-sf (vila-sf)
Assigned to: Daniel Stenberg (bagder)
Summary: race condition while POSTing to HTTP/1.0 servers

Initial Comment:
As explained at https://bugs.launchpad.net/bzr/+bug/225020, it seems that in rare occurrences curl/libcurl try to send the body of a POST request while the server has already sent a 403 response.

The version used is:
curl 7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1 on ubuntu hardy.

It occurs rarely and only with HTTP/1.0 servers.

It has been mentioned that a change in socket behaviour in the kernel may be provoking this bug.

The link above provides a wireshark capture of the transaction.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2008-08-28 11:44

Message:
Logged In: YES
user_id=1110
Originator: NO

I've now (locally) modified the curl test suite so that I was possible to
write up a test case that repeats this behavior. I'll now see what I can do
to make it behave...

----------------------------------------------------------------------

Comment By: vila-sf (vila-sf)
Date: 2008-08-28 11:29

Message:
Logged In: YES
user_id=1584517
Originator: YES

I can confirm that if curl wasn't trying to send the body when a 403
response has been received, it will indeed fix my use case. Thanks to
badger for linking to the other bug.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2008-08-28 10:58

Message:
Logged In: YES
user_id=1110
Originator: NO

This looks related to the previous mentions of libcurl not properly
stopping the sending when 400+ codes are received:

http://curl.haxx.se/mail/archive-2008-08/0138.html

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2080222&group_id=976
Received on 2008-08-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET