core: make sure win32 sockets remain blocking

System Internals / PulseAudio - Pierre Ossman [cendio.se] - 15 November 2013 02:53 EST

Commit 7e344b5 hade the side effect of forcing every socket to be non-blocking on Windows. This is because of a (documented) side effect of WSAEventSelect(). So we need to make sure to restore blocking behaviour afterwards for relevant sockets.

0138a51 core: make sure win32 sockets remain blocking
src/pulsecore/core-util.c | 64 +++++++++++++++++++++++++++++++++++++++-----
src/pulsecore/core-util.h | 3 +++
src/pulsecore/poll-win32.c | 5 ++++
3 files changed, 66 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share