Ignoring some bad network errors re Robby
This commit is contained in:
parent
bbd24edb54
commit
4b84fc7b48
|
@ -73,6 +73,14 @@
|
||||||
(define conn
|
(define conn
|
||||||
(new-connection config:initial-connection-timeout
|
(new-connection config:initial-connection-timeout
|
||||||
ip op (current-custodian) #f))
|
ip op (current-custodian) #f))
|
||||||
|
(with-handlers
|
||||||
|
([(λ (x)
|
||||||
|
;; This error is "Connection reset by peer" and doesn't
|
||||||
|
;; really indicate a problem with the server.
|
||||||
|
(and (exn:fail:network:errno? x)
|
||||||
|
(= 54 (exn:fail:network:errno-errno x))))
|
||||||
|
(λ (x)
|
||||||
|
(kill-connection! conn))])
|
||||||
;; HTTP/1.1 allows any number of requests to come from this input
|
;; HTTP/1.1 allows any number of requests to come from this input
|
||||||
;; port. However, there is no explicit cancellation of a
|
;; port. However, there is no explicit cancellation of a
|
||||||
;; connection---the browser will just close the port. This leaves
|
;; connection---the browser will just close the port. This leaves
|
||||||
|
@ -109,4 +117,4 @@
|
||||||
(connection-loop))])))))
|
(connection-loop))])))))
|
||||||
(define (connection-loop)
|
(define (connection-loop)
|
||||||
(sync the-evt))
|
(sync the-evt))
|
||||||
(connection-loop))
|
(connection-loop)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user