Always listen for EOF, even if we have no inbound credit.
This commit is contained in:
parent
51960662d4
commit
75d40c7abc
|
@ -202,6 +202,11 @@
|
|||
(extend-transition (adjust-credit state (- len))
|
||||
(send-message (tcp-channel remote-addr local-addr bs)))])])))))
|
||||
(transition (tcp-connection-state 'bytes 0)
|
||||
(role 'explicit-eof-listener (topic-subscriber (cons (eof-evt cin) (wild)))
|
||||
#:state state
|
||||
[(cons (? evt?) _)
|
||||
(close-transition state #t)])
|
||||
|
||||
(role 'outbound-relay (topic-subscriber (tcp-channel local-addr remote-addr (wild)))
|
||||
#:state state
|
||||
#:on-absence (close-transition state #f)
|
||||
|
|
Loading…
Reference in New Issue