diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-02-21 21:59:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-02-21 21:59:40 +0000 |
commit | f19d333ef6b067809cb2b0c153fbd3f5db4321a1 (patch) | |
tree | d485d8090f179b84b29c95eff4672c68283f692e /lib/http_chunks.h | |
parent | 3a634a273a7bff3d219883f572db786e2c1004b1 (diff) | |
download | curl-f19d333ef6b067809cb2b0c153fbd3f5db4321a1.tar.gz |
- Ravi Pratap provided work on libcurl making pipelining more robust and
fixing some bugs:
o Don't mix GET and POST requests in a pipeline
o Fix the order in which requests are dispatched from the pipeline
o Fixed several curl bugs with pipelining when the server is returning
chunked encoding:
* Added states to chunked parsing for final CRLF
* Rewind buffer after parsing chunk with data remaining
* Moved chunked header initializing to a spot just before receiving
headers
Diffstat (limited to 'lib/http_chunks.h')
-rw-r--r-- | lib/http_chunks.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/http_chunks.h b/lib/http_chunks.h index 211818ab7..c478799c1 100644 --- a/lib/http_chunks.h +++ b/lib/http_chunks.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -56,6 +56,10 @@ typedef enum { CRLF combination marks the end of a chunk */ CHUNK_POSTLF, + /* Each Chunk body should end with a CRLF. Read a CR and nothing else, + then move to CHUNK_STOP */ + CHUNK_STOPCR, + /* This is mainly used to really mark that we're out of the game. NOTE: that there's a 'dataleft' field in the struct that will tell how many bytes that were not passed to the client in the end of the last |