Connection takes too long when Content-Length is not set
Brought to you by:
jpmcc
NTLMAPS version 0.9.9.6 under Windows XP.
If I try to receive the response that has no Content-Length set, the stream never finishes, until the server closes the connection.
You can find the log as an attachment, that shows an example of contacting JIRA (through Mylar under Eclipse) in which the response has no Content-Length.
Log for the example
Logged In: YES
user_id=348219
Originator: YES
I suppose that I have found the problem: it seems that no support for chunked transfer encoding has been implemented:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1
HTH
Antonio
Patch for chunked transfer support
Logged In: YES
user_id=348219
Originator: YES
File Added: result.patch
Logged In: YES
user_id=348219
Originator: YES
I added a patch to solve the problem.
Notice that this is the very first Python code that I wrote, so please be kind with me :-)
Ciao
Antonio
P.S. I authorize the inclusion of the patch under the GPL license, if it does matter.