elixir-socket icon indicating copy to clipboard operation
elixir-socket copied to clipboard

Socket.Web.connect! blocks after server accepts, rejects, and closes the connection.

Open rabarar opened this issue 9 years ago • 0 comments

If I inspect the accepted connection and decide I want to close it, the client connect! blocks. Unless I'm closing it wrong, I would expect that the client would not block after the server closes the client connection. Here's how I'm closing the connection in the server after I've call accept on the server socket.

Socket.Web.close(client, {:normal, "unknown route"}, [{:wait, false},{:reason, :true}])

https://guides.github.com/features/mastering-markdown/

rabarar avatar Jan 20 '17 02:01 rabarar