Mercurial > urweb
comparison src/c/http.c @ 2249:c05851bf7861
Merge.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Sat, 12 Sep 2015 17:11:33 -0400 |
parents | 3b4a5604ed97 |
children |
comparison
equal
deleted
inserted
replaced
2248:e09c3dc102ef | 2249:c05851bf7861 |
---|---|
312 | 312 |
313 return NULL; | 313 return NULL; |
314 } | 314 } |
315 | 315 |
316 static void help(char *cmd) { | 316 static void help(char *cmd) { |
317 printf("Usage: %s [-p <port>] [-a <IP address>] [-t <thread count>] [-k] [-q] [-T SEC]\nThe '-k' option turns on HTTP keepalive.\nThe '-q' option turns off some chatter on stdout.\nThe -T option sets socket recv timeout (0 disables timeout, default is 5 sec)", cmd); | 317 printf("Usage: %s [-p <port>] [-a <IP address>] [-t <thread count>] [-k] [-q] [-T SEC]\nThe '-k' option turns on HTTP keepalive.\nThe '-q' option turns off some chatter on stdout.\nThe '-T' option sets socket recv timeout (0 disables timeout, default is 5 sec).\n", cmd); |
318 } | 318 } |
319 | 319 |
320 static void sigint(int signum) { | 320 static void sigint(int signum) { |
321 printf("Exiting....\n"); | 321 printf("Exiting....\n"); |
322 exit(0); | 322 exit(0); |