cs: fix custodian shutdown of TCP to use shutdown
In other words, send an EOF over TCP on custodian shutdown.
This commit is contained in:
parent
fcb75e69ff
commit
cf08436e05
|
@ -437,6 +437,9 @@
|
|||
(lambda (fd)
|
||||
(when flush-handle
|
||||
(plumber-flush-handle-remove! flush-handle))
|
||||
(if (input-port? port)
|
||||
(send fd-input-port port on-close)
|
||||
(send fd-output-port port on-close))
|
||||
(fd-close fd fd-refcount)
|
||||
(set-closed-state! port))
|
||||
#f
|
||||
|
|
Loading…
Reference in New Issue
Block a user