我正在像这样从cygwin运行curl
$ curl -v -i -X POST 'http://www.abc.com:10123/myapp/abc' -H "Content-Type: application/json" --data-binary "@input.json"
它开始连接并在此行挂起STATE:CONNECT => WAITCONNECT句柄0x8001f150;第1074行(连接#0)为149986ms,然后能够连接并发送请求(下面显示的跟踪)。现在问题是为什么它等了那么久?我怎么能跳过这个等待时间?
感谢。
STATE: INIT => CONNECT handle 0x8001f150; line 1027 (connection #-5000)
About to connect() to www.abc.com port 10123 (#0)
Trying ::1...
Adding handle: conn: 0x80059548
Adding handle: send: 0
Adding handle: recv: 0
Curl_addHandleToPipeline: length: 1
0x8001f150 is at send pipe head!
- Conn 0 (0x80059548) send_pipe: 1, recv_pipe: 0
STATE: CONNECT => WAITCONNECT handle 0x8001f150; line 1074 (connection #0)
After 149986ms connect time, move on!
Trying 127.0.0.1...
Connected to www.abc.com (127.0.0.1) port 10