mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Merge branch 'backport-1827-win32-fd-read-glib-2-66' into 'glib-2-66'
Backport !1827 “Windows: fix FD_READ condition flag still set on recoverable UDP socket errors.” to glib-2-66 See merge request GNOME/glib!1836
This commit is contained in:
commit
55ebcf05ba
@ -5475,10 +5475,10 @@ g_socket_receive_message_with_timeout (GSocket *socket,
|
|||||||
if (errsv == WSAEINTR)
|
if (errsv == WSAEINTR)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
win32_unset_event_mask (socket, FD_READ);
|
||||||
|
|
||||||
if (errsv == WSAEWOULDBLOCK)
|
if (errsv == WSAEWOULDBLOCK)
|
||||||
{
|
{
|
||||||
win32_unset_event_mask (socket, FD_READ);
|
|
||||||
|
|
||||||
if (timeout_us != 0)
|
if (timeout_us != 0)
|
||||||
{
|
{
|
||||||
if (!block_on_timeout (socket, G_IO_IN, timeout_us,
|
if (!block_on_timeout (socket, G_IO_IN, timeout_us,
|
||||||
|
Loading…
Reference in New Issue
Block a user