Closed jmooreoliva closed 10 years ago
I forgot to mention: This test was run in ubuntu 12.04 with pyuv 0.11.4 and python 2.7.3.
@jmooreoliva thanks!
This was a bug and fixed in 86ba2984418984d45ed581a2209377fcb0c276ea. When you connect to an address and it fails, a TransportError will be raised now.
This may very well be a case of my not understanding the API. Though in my defense I searched both the docs and the http tests before posting here.
Below I attempt to connect to a server that is not running. I would expect the connect call to raise some kind of exception. Instead the connection call works, and it is not until getresponse() a warning is logged and then control is never returned to the caller.
Please find the example code below along with the output for both when the server is running (which is not the error case) and when the server is not running (which is the condition I am writing this issue about).
==Output when server listening==
==Output when server is not listening, connection should fail==