mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
added note about persistancy in the server
This commit is contained in:
parent
818cdb879e
commit
83f35463f5
@ -88,6 +88,17 @@ int ProcessRequest(char *request)
|
|||||||
/* we don't have a complete request yet! */
|
/* we don't have a complete request yet! */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* **** Persistancy ****
|
||||||
|
*
|
||||||
|
* If the request is a HTTP/1.0 one, we close the connection unconditionally
|
||||||
|
* when we're done.
|
||||||
|
*
|
||||||
|
* If the request is a HTTP/1.1 one, we MUST check for a "Connection:"
|
||||||
|
* header that might say "close". If it does, we close a connection when
|
||||||
|
* this request is processed. Otherwise, we keep the connection alive for X
|
||||||
|
* seconds.
|
||||||
|
*/
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if(!strncasecmp("Content-Length:", line, 15))
|
if(!strncasecmp("Content-Length:", line, 15))
|
||||||
contentlength = strtol(line+15, &line, 10);
|
contentlength = strtol(line+15, &line, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user