Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idle-timeout causes internal errors on recv #13

Open
endobson opened this issue Jun 4, 2017 · 0 comments
Open

idle-timeout causes internal errors on recv #13

endobson opened this issue Jun 4, 2017 · 0 comments

Comments

@endobson
Copy link

endobson commented Jun 4, 2017

If the timeout triggers and the connection is closed, but recv is still in the midst of being called the following error can occur

read-byte: input port is closed
  context...:
   /Users/endobson/proj/racket/plt/racket/share/pkgs/rfc6455/net/rfc6455/rfc6455/frame.rkt:36:0: read-frame
   /Users/endobson/proj/racket/plt/racket/share/pkgs/rfc6455/net/rfc6455/rfc6455/conn.rkt:59:0: next-data-frame
   /Users/endobson/proj/racket/plt/racket/share/pkgs/rfc6455/net/rfc6455/rfc6455/conn.rkt:153:9: unpack129
   /Users/endobson/proj/racket/websocket/server.rkt:61:14
   /Users/endobson/proj/racket/websocket/server.rkt:52:6
   /Users/endobson/proj/racket/plt/racket/collects/racket/contract/private/arrow-higher-order.rkt:342:33
   [repeats 2 more times]
   /Users/endobson/proj/racket/plt/racket/share/pkgs/web-server-lib/web-server/private/dispatch-server-with-connect-unit.rkt:131:8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant