Cleanup
svn: r12314
This commit is contained in:
parent
2fc429a9d7
commit
88c842bd06
|
@ -30,6 +30,7 @@
|
|||
dispatcher/c))])
|
||||
|
||||
(define interface-version 'v1)
|
||||
; XXX url->servlet
|
||||
(define (make config:scripts
|
||||
#:url->path url->path
|
||||
#:make-servlet-namespace [make-servlet-namespace (make-make-servlet-namespace)]
|
||||
|
|
|
@ -38,16 +38,18 @@
|
|||
(lambda ()
|
||||
(cond
|
||||
[(weak-box-value conn-wb)
|
||||
=> kill-connection!]))))
|
||||
=> kill-connection-w/o-timer!]))))
|
||||
conn)
|
||||
|
||||
;; kill-connection!: connection -> void
|
||||
;; kill this connection
|
||||
(define (kill-connection! conn)
|
||||
#;(printf "K: ~a~n" (connection-id conn))
|
||||
; XXX Don't need to do this when called from timer
|
||||
(with-handlers ([exn? void])
|
||||
(cancel-timer! (connection-timer conn)))
|
||||
(kill-connection-w/o-timer! conn))
|
||||
|
||||
(define (kill-connection-w/o-timer! conn)
|
||||
(with-handlers ([exn:fail:network? void])
|
||||
(close-output-port (connection-o-port conn)))
|
||||
(with-handlers ([exn:fail:network? void])
|
||||
|
|
Loading…
Reference in New Issue
Block a user