error in one client does not kill httpd

cvs
Slava Pestov 2004-08-11 03:54:12 +00:00
parent ac1855bc15
commit c58ca29ef7
2 changed files with 8 additions and 4 deletions

View File

@ -88,8 +88,8 @@ ERROR: I/O error: [ "primitive_read_line_fd_8" "Resource temporarily unavailable
+ httpd: + httpd:
- broken pipe errors with httpd and telnetd in cfactor
- multitasking - multitasking
- don't die if one client errors
- inspect: always use inspect/ URL prefix, not responder name var - inspect: always use inspect/ URL prefix, not responder name var
- httpd: don't flush so much - httpd: don't flush so much
- log with date - log with date

View File

@ -76,9 +76,13 @@ USE: url-encoding
: httpd-client ( socket -- ) : httpd-client ( socket -- )
[ [
"stdio" get "client" set log-client [
read [ parse-request ] when* "stdio" get "client" set log-client
] with-stream ; read [ parse-request ] when*
] with-stream
] [
default-error-handler drop
] catch ;
: quit-flag ( -- ? ) : quit-flag ( -- ? )
global [ "httpd-quit" get ] bind ; global [ "httpd-quit" get ] bind ;