issues
search
tonyg
/
racket-rfc6455
RFC 6455 WebSockets support for Racket.
41
stars
7
forks
source link
fix ws-conn will to work as intended
#20
Open
djholtby
opened
3 years ago
djholtby
commented
3 years ago
changes ws-conn-read-thread to hold a reference to ws-conn weakly, so that the ws-conn can be garbage collected even if it is still active
the will closes the connection if it is still closed (so the client will not see a broken-pipe error, but proper websocket disconnect)
the thread stops if the ws-conn is collected (break is not needed in the will)