reverted timeouts

This commit is contained in:
Dhanya Maliakal 2016-11-01 13:09:16 +01:00
parent 19caeb3e38
commit 8bb0249d5b

View File

@ -480,8 +480,8 @@ enum communicationProtocol{
{
cerr << "Error in setsockopt SO_RCVTIMEO "<< 0 << endl;
}
tout.tv_sec = 0;//ts;
tout.tv_usec = 500;//0;
tout.tv_sec = ts;
tout.tv_usec = 0;
if(::setsockopt(socketDescriptor, SOL_SOCKET, SO_SNDTIMEO, &tout, sizeof(struct timeval)) < 0)
{
cerr << "Error in setsockopt SO_SNDTIMEO " << ts << endl;