racket-rfc6455 icon indicating copy to clipboard operation
racket-rfc6455 copied to clipboard

fix ws-conn will to work as intended

Open djholtby opened this issue 4 years ago • 0 comments

  • 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)

djholtby avatar Jul 13 '21 18:07 djholtby