From 3dff60eb16d1ae374d7730111152eb114791b030 Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 10 Jul 2020 08:18:28 -0400 Subject: [PATCH] Fix #565 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index f88d041..a8c1728 100644 --- a/httplib.h +++ b/httplib.h @@ -1753,7 +1753,7 @@ inline ssize_t select_write(socket_t sock, time_t sec, time_t usec) { pfd_read.fd = sock; pfd_read.events = POLLOUT; - auto timeout = static_cast(sec * 1000 + usec / 1000); + auto timeout = static_cast(sec * 1000 + usec); return handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); }); #else