gsocket: avoid unnecessary select in _send_messages() and _receive_message()
authorTim-Philipp Müller <tim@centricular.com>
Wed, 3 Jun 2015 12:06:24 +0000 (13:06 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 21 Jun 2015 09:28:14 +0000 (10:28 +0100)
commitfd789f118741d89df348ba21ddc1d813da02fb76
tree83678a8e49bfa6889e519d57ae44923af0f76047
parent9e85f60ec68eb0330e18254726facdc5d8983e35
gsocket: avoid unnecessary select in _send_messages() and _receive_message()

For performance reasons we should always try to send or
receive our messages first and only wait for more space
or data to become available if we get an EAGAIN (and
are in blocking mode).

https://bugzilla.gnome.org/show_bug.cgi?id=751122
gio/gsocket.c