Menu

#462 failed chunked transfer can incorrectly succeed.

closed-duplicate
http (206)
5
2004-12-03
2004-12-03
Anonymous
No

mail: mbarnum@tivo.com

[note: this was true in curl 7.12.0 and appears to still be
the case in cvs as of version 1.259 of lib/transfer.c]

if the connection to the remote host closes after one
chunk has been processed and before any more data is
read, curl will consider the transfer to have succeeded
because it checks for conn->proto.http->chunk.datasize
to be zero. this field is decremented as the chunk
is processed, leading to the bug.

fix attached.

Discussion

  • Nobody/Anonymous

    fix for bug

     
  • Daniel Stenberg

    Daniel Stenberg - 2004-12-03

    Logged In: YES
    user_id=1110

    Same as #1078066

     
  • Daniel Stenberg

    Daniel Stenberg - 2004-12-03
    • status: open --> closed-duplicate
     
MongoDB Logo MongoDB