]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg: fix poll event driver, handling POLLHUP and POLLERR
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 20 Jan 2023 16:52:14 +0000 (18:52 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 20 Jan 2023 17:05:18 +0000 (19:05 +0200)
commit68a1e7b5f72058838bd7718b0188ea380df711d6
tree2a5920ea5415e213da7aef410d0f6313bf8c7712
parent510284b66513490445619d1430aa869868c71a09
msg: fix poll event driver, handling POLLHUP and POLLERR

The poll event driver (mainly used on Windows) is currently ignoring
POLLOUT and POLLERR events.

Because of this, the caller doesn't get notified that the connection
closed and can end up calling "event_wait" indefinitely.

This change ensures that POLLOUT and POLLERR events are properly
propagated by the poll driver.

Related issue: https://github.com/cloudbase/wnbd/issues/98

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/msg/async/EventPoll.cc