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:
|
+ 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
|
||||||
|
|
|
@ -75,10 +75,14 @@ USE: url-encoding
|
||||||
] ifte ;
|
] ifte ;
|
||||||
|
|
||||||
: httpd-client ( socket -- )
|
: httpd-client ( socket -- )
|
||||||
|
[
|
||||||
[
|
[
|
||||||
"stdio" get "client" set log-client
|
"stdio" get "client" set log-client
|
||||||
read [ parse-request ] when*
|
read [ parse-request ] when*
|
||||||
] with-stream ;
|
] with-stream
|
||||||
|
] [
|
||||||
|
default-error-handler drop
|
||||||
|
] catch ;
|
||||||
|
|
||||||
: quit-flag ( -- ? )
|
: quit-flag ( -- ? )
|
||||||
global [ "httpd-quit" get ] bind ;
|
global [ "httpd-quit" get ] bind ;
|
||||||
|
|
Loading…
Reference in New Issue