]> granicus.if.org Git - curl/commitdiff
added note about persistancy in the server
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Feb 2002 12:52:04 +0000 (12:52 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Feb 2002 12:52:04 +0000 (12:52 +0000)
tests/server/sws.c

index a78931b301e521bd497a84d786269239b69482f7..e560c6c679d479feb35a7698155130977bd322d3 100644 (file)
@@ -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);