Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9
-
Windows 8 x64
Description
Socket timeouts are declared in milliseconds in TSocket.h:
/**
- Set the connect timeout
*/
void setConnTimeout(int ms);
/**
- Set the receive timeout
*/
void setRecvTimeout(int ms);
/**
- Set the send timeout
*/
void setSendTimeout(int ms);
But, when i set timeout which is supposed to be 5000 seconds, and make a call to the service function that intentionally hangs, ETIMEDOUT exception occurs precisely after 5 seconds.
socket->setConnTimeout(5*1000*1000);
socket->setRecvTimeout(5*1000*1000);
socket->setSendTimeout(5*1000*1000);
Attachments
Attachments
Issue Links
- incorporates
-
THRIFT-1587 TSocket::setRecvTimeout error
- Closed