Skip to content

Commit 3dff60e

Browse files
committed
Fix #565
1 parent 5038314 commit 3dff60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ inline ssize_t select_write(socket_t sock, time_t sec, time_t usec) {
17531753
pfd_read.fd = sock;
17541754
pfd_read.events = POLLOUT;
17551755

1756-
auto timeout = static_cast<int>(sec * 1000 + usec / 1000);
1756+
auto timeout = static_cast<int>(sec * 1000 + usec);
17571757

17581758
return handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); });
17591759
#else

0 commit comments

Comments
 (0)