Menu

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

open
nobody
None
5
2007-01-29
2007-01-29
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

  • Antonio Petrelli

    Log for the example

     
  • Antonio Petrelli

    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

     
  • Antonio Petrelli

    Patch for chunked transfer support

     
  • Antonio Petrelli

    Logged In: YES
    user_id=348219
    Originator: YES

    File Added: result.patch

     
  • Antonio Petrelli

    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.

     

Log in to post a comment.