tonyg / racket-rfc6455

RFC 6455 WebSockets support for Racket.
41 stars 7 forks source link

ws-serve raises uncaught exceptions on internal threads #12

Open endobson opened 7 years ago

endobson commented 7 years ago

When reloading my client webpages that are using websockets to communicate with a racket websocket server I see error messages such as:

tcp-read: error reading
  system error: Connection reset by peer; errno=54
  context...:
   /Users/endobson/proj/racket/plt/racket/collects/racket/port.rkt:1156:4: try-again

in my terminal output.

These seem to be uncaught exceptions, and they dont seem to be coming from any of my provided code. The server internals should be handling these exceptions and not letting them get to the uncaught-exception-handler, especially since handling a reset tcp connection should not be an error condition for the server.