From 7a84cfc0690f3cf36c001ad27e667377c73fc8b4 Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 7 Jul 2006 15:36:55 +0200 Subject: [PATCH 1/1] write_ok(): Always reset the select timeout --- send.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/send.h b/send.h index bf1ca111..76a35123 100644 --- a/send.h +++ b/send.h @@ -101,6 +101,8 @@ static inline int write_ok(int fd) again: FD_ZERO(&wfds); FD_SET(fd, &wfds); + tv.tv_sec = 0; + tv.tv_usec = 0; ret = select(fd + 1, NULL, &wfds, NULL, &tv); if (ret < 0 && errno == EINTR) goto again; -- 2.39.2