diff options
author | Ben Craig <bencraig@apache.org> | 2013-10-10 08:55:16 -0500 |
---|---|---|
committer | Ben Craig <bencraig@apache.org> | 2013-10-10 08:55:16 -0500 |
commit | 71b5a10b613406765037ecd0e300769b34741c00 (patch) | |
tree | 618bd556ceacc385e2281cf2cbb1461adf3a2fd8 /lib/cpp/src/thrift/windows | |
parent | d856ac8c3016888da32a689896a7bd944310d0cf (diff) | |
download | thrift-71b5a10b613406765037ecd0e300769b34741c00.tar.gz |
THRIFT-1892: Socket timeouts are declared in milli-seconds, but are
actually set in micro-seconds
Client: cpp
Patch: Ben Craig
Diffstat (limited to 'lib/cpp/src/thrift/windows')
-rw-r--r-- | lib/cpp/src/thrift/windows/WinFcntl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cpp/src/thrift/windows/WinFcntl.cpp b/lib/cpp/src/thrift/windows/WinFcntl.cpp index 2466400e1..f7b433776 100644 --- a/lib/cpp/src/thrift/windows/WinFcntl.cpp +++ b/lib/cpp/src/thrift/windows/WinFcntl.cpp @@ -75,7 +75,7 @@ int thrift_poll(THRIFT_POLLFD *fdArray, ULONG nfds, INT timeout) timeval time_out; timeval* time_out_ptr = NULL; if(timeout >= 0) { - timeval time_out = {timeout / 1000, timeout * 1000}; + timeval time_out = {timeout / 1000, (timeout % 1000) * 1000}; time_out_ptr = &time_out; } else { //to avoid compiler warnings |