static inline void __set_sock_option(int fd, int cli)
{
int size;
- struct timeval tv = { 3, 200 * 1000 }; /* 3.2 sec */
+ struct timeval tv = { 5, 200 * 1000 }; /* 5.2 sec */
size = AUL_SOCK_MAXBUFF;
setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &size, sizeof(size));
len = recv(fd, &res, sizeof(int), 0);
if (len == -1) {
if (errno == EAGAIN) {
- _E("recv timeout \n");
+ _E("recv timeout : %s", strerror(errno));
res = -EAGAIN;
} else {
- _E("recv error\n");
+ _E("recv error : %s", strerror(errno));
res = -ECOMM;
}
}