elixir-socket
elixir-socket copied to clipboard
Socket.Web.connect! blocks after server accepts, rejects, and closes the connection.
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/