[thrift] better error handling and timeouts in tSocket code
authoreletuchy <dev-null@apache.org>
Tue, 26 Feb 2008 11:44:00 +0000 (11:44 +0000)
committereletuchy <dev-null@apache.org>
Tue, 26 Feb 2008 11:44:00 +0000 (11:44 +0000)
commit698713cf644661faa935f0b5cdee2b8e4a99f1a2
treebb2480379e996f4c829f68e4848067e945b19142
parent0e18224473b8bad918e060900663a9d0058d7196
[thrift] better error handling and timeouts in tSocket code

Summary: default socket send timeout to 5seconds, not infinity.
         close the socket in case of an error.

Reviewed By: cpiro

Test Plan: ran a client for slow services
     and sanity checked other client code to make sure

Revert Plan: sure

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665504 13f79535-47bb-0310-9956-ffa450edef68
lib/erl/src/transport/tSocket.erl