The example tries to send a request to a port that isn't bound. I would expect the exception handler to log an error message, but instead the success handler logs a message and I see an uncaught exception GET http://127.0.0.1:2323/ net::ERR_CONNECTION_REFUSED in the Chrome developer console.
To reproduce: clone https://gist.github.com/apatil/25ae4986bc02c2e7a6407e1655574ac3 , run
make
, make sure nothing is running on port 2323, and openindex.html
in your browser.The example tries to send a request to a port that isn't bound. I would expect the exception handler to log an error message, but instead the success handler logs a message and I see an uncaught exception
GET http://127.0.0.1:2323/ net::ERR_CONNECTION_REFUSED
in the Chrome developer console.Tested with cohttp 0.21.0.