svn: r12314
This commit is contained in:
Jay McCarthy 2008-11-05 22:05:13 +00:00
parent 2fc429a9d7
commit 88c842bd06
2 changed files with 5 additions and 2 deletions

View File

@ -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)]

View File

@ -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])