uber-node / tcurl

A command line utility to talk to tchannel servers
MIT License
36 stars 7 forks source link

--timeout is not respected #131

Open blampe opened 8 years ago

blampe commented 8 years ago
tcurl -p localhost:44390 foo --timeout 500000 --health
NOT OK
TchannelConnectionTimeoutError: connection timed out after 2001ms (limit was 2000ms)
blampe commented 8 years ago

@kriskowal have you seen this before?

Raynos commented 8 years ago

connection timeout is different and not configurable.

There are two timeouts.

If the init handshake times out that generally means that the TCP connection was opened but the remote side did not speak the tchannel protocol ( HTTP server ? )

Other reasons why the init handshake fails is

ctrlhxj commented 8 years ago

The server is speaking tchannel and it's a local process, which means that it's either

prashantv commented 8 years ago

@ctrlhxj You can try using tcap to help diagnose what's going on.

If you really want to have a much higher timeout for a connection, you can also try using yab which uses the specified timeout for connecting as well as the request.