mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 04:45:48 +01:00
Remove an erroneous check in the non-sendmmsg() version of g_socket_send_messages()
The docs specify that *all* errors are ignored if we managed to send any data successfully, not just timeout/wouldblock. https://bugzilla.gnome.org/show_bug.cgi?id=768549
This commit is contained in:
parent
62bd8f54bb
commit
e0bb25c214
@ -4662,9 +4662,7 @@ g_socket_send_messages_with_timeout (GSocket *socket,
|
|||||||
{
|
{
|
||||||
/* if we couldn't send all messages, just return how many we did
|
/* if we couldn't send all messages, just return how many we did
|
||||||
* manage to send, provided we managed to send at least one */
|
* manage to send, provided we managed to send at least one */
|
||||||
if (i > 0 &&
|
if (i > 0)
|
||||||
(g_error_matches (msg_error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK) ||
|
|
||||||
g_error_matches (msg_error, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)))
|
|
||||||
{
|
{
|
||||||
g_error_free (msg_error);
|
g_error_free (msg_error);
|
||||||
return i;
|
return i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user