cURL, on Cygwin.
Turning verbosity on with
--ascii-tracethis is the output of the happy path:
* About to connect() to localhost port 18182 (#0) * Trying ::1... * Timeout * Trying 127.0.0.1... * connected * Connected to localhost (127.0.0.1) port 18182 (#0)
When it hangs, it does it when
With the little help from RawCap I noticed that the TCP stack never receives the
SYN SENTstate (see here for a picture). And
cURLsometimes isn't forcibly timing out.
--connect-timeoutthe problem is solved.