error in one client does not kill httpd
parent
ac1855bc15
commit
c58ca29ef7
|
@ -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
|
||||
|
|
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue