FastDFS源代码的BUG2
源文件: libfastcommon/src/sockopt.cLINE:348
#ifdef USE_SELECT
if (timeout <= 0)
{
res = select(sock+1, &read_set, NULL, NULL, NULL);
}
else
{
t.tv_usec = timeout_ms * 1000;
t.tv_sec = timeout_ms / 1000;
res = select(sock+1, &read_set, NULL, NULL, &t);
}
#else t.tv_usec = timeout_ms * 1000;
应该为
t.tv_usec = (timeout_ms%1000) * 1000; 感谢反馈,已修复这个问题。
页:
[1]