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:
Matthew Flatt 2019-04-30 11:02:08 -06:00
parent fcb75e69ff
commit cf08436e05

View File

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