#23 Connection takes too long when Content-Length is not set

open
nobody
None
5
2007-01-29
2007-01-29
Antonio Petrelli
No

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.

Discussion

  • Log for the example

     
    Attachments
  • Patch for chunked transfer support

     
    Attachments
  • 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.