diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-02-07 12:52:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-02-07 12:52:04 +0000 |
commit | 83f35463f5c09346c46544f32d8e718e646f78e2 (patch) | |
tree | 67292dcfb79f1696b36fb258e4383c4b72df3656 | |
parent | 818cdb879e55a52de8a1eb3774a8719b635235c4 (diff) |
added note about persistancy in the server
-rw-r--r-- | tests/server/sws.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index a78931b30..e560c6c67 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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); |