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:
- broken pipe errors with httpd and telnetd in cfactor
- multitasking
- don't die if one client errors
- inspect: always use inspect/ URL prefix, not responder name var
- httpd: don't flush so much
- log with date

View File

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