Skip to content
Snippets Groups Projects
Commit 83f35463 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added note about persistancy in the server

parent 818cdb87
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,17 @@ int ProcessRequest(char *request)
/* we don't have a complete request yet! */
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 {
if(!strncasecmp("Content-Length:", line, 15))
contentlength = strtol(line+15, &line, 10);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment