develooper Front page | perl.perl5.porters | Postings from March 2007

[perl #41973] libwww bug + patch

Thread Next
Gajdov Gabor
March 22, 2007 05:43
[perl #41973] libwww bug + patch
Message ID:
# New Ticket Created by  Gajdov Gabor 
# Please include the string:  [perl #41973]
# in the subject line of all future correspondence about this issue. 
# <URL: >

Dear Perl crew!

I hope, I'm writing to the correct e-mail address about libwww bug.
I think we've found a bug in the module.

We have to send xml documents in POST method to a server via an unknown 
reverse proxy.

We found out that if the xml document is above an exact size (8k) we get 
back an "500 write failed" error message.
After a day of debugging my colleague found the problem:
The transaction may run on timeout after the header at the proxy side 
and reset the connection, so it doesn't receive the content.

After applying the attached patch: in the request the CRLF after the 
header, will sent with the content, in this way the proxy will wait for 
the content and doesn't reset the connection. And the transaction works 

I hope you'll find it useful.
And sorry for my bad English.


Gabor Gajdov
Linux System Engineer
Hungary.Network Inc.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About