GNOME Bugzilla – Bug 585905
add cancellable to GSocket calls?
Last modified: 2009-07-07 08:49:48 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
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.
*** This bug has been marked as a duplicate of 586797 ***