[net] Ensure we don't spin loop by keeping the poll write bit set
authorMatt Corallo <git@bluematt.me>
Sun, 3 Oct 2021 21:41:18 +0000 (21:41 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 16 Oct 2021 02:30:00 +0000 (02:30 +0000)
commitb1ea57acc81af14e8623deca4a8a352d0d2ff71e
tree43701c29c4f882d5a1f35bd7815b4fc5b85d38d1
parentfea3e0caec33c4828824f4491636c891b8a74aa5
[net] Ensure we don't spin loop by keeping the poll write bit set

Previously we'd not been unsetting POLLOUT, which will result in
us spin-loop'ing with ChannelManager_write_buffer_space_avail.

Further, we'd also not been unsetting the POLLIN bit, which would
result in us never pausing read as the SocketDescriptor API
requires us to.
ldk-net/ldk_net.c