Fix hang on Windows when multiple --client args are present
authorjrizzo <james.rizzo@broadcom.com>
Tue, 15 Apr 2025 17:57:20 +0000 (11:57 -0600)
committerjrizzo <james.rizzo@broadcom.com>
Tue, 15 Apr 2025 17:58:48 +0000 (11:58 -0600)
commitb7be1e420f66a0fe2bf9b22f5a3e9da077330b41
treee454e194ef03a31f019ba27be952ecc5943a8093
parent96afc2337db197a59fae916b5ff4226af8b0108f
Fix hang on Windows when multiple --client args are present

The Windows poll function does not clear revents field before it is
populated.  As a result, subsequent calls to poll using the same
pollfd reference return with revents set even when there is nothing
available to read.  This later results in a hang in recv().

Signed-off-by: James Rizzo <james.rizzo@broadcom.com>
os/windows/posix.c