After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 585905 - add cancellable to GSocket calls?
add cancellable to GSocket calls?
Status: RESOLVED DUPLICATE of bug 586797
Product: glib
Classification: Platform
Component: network
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-06-15 19:37 UTC by Allison Karlitskaya (desrt)
Modified: 2009-07-07 08:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2009-06-15 19:37:17 UTC
a bunch of the gsocket calls when done in blocking mode make a call to g_socket_condition_wait().  A NULL is passed for cancellable here.  Why not take a cancellable from the user and pass that through?

g_socket_accept
g_socket_connect
g_socket_receive
g_socket_send
g_socket_receive_from
g_socket_send_to
g_socket_receive_message
g_socket_send_message
Comment 1 Alexander Larsson 2009-06-24 07:52:34 UTC
GSocket is the lowlevel API, its meant to mirror more or less exactly how socket works, anything that wants cancellable stuff is gonna have to use nonblocking mode itself. I don't think it makes sense to add "highlevel" stuff to the lowlevel APIs like this.
Comment 2 Allison Karlitskaya (desrt) 2009-07-07 08:49:48 UTC

*** This bug has been marked as a duplicate of 586797 ***