Skip to content

tcp-bsd: Handle send before connect() completes

Was investigating why GDBus over ICE was either quite snappy or taking an extra second or so to establish, and finally figured out why: when g_socket_send_message() is called before the connect() completes, this results in G_IO_ERROR_NOT_CONNECTED. Seeing as this error code appeared in GLib 2.44, I wonder if perhaps this edge-case used to work a while back because of the G_IO_ERROR_FAILED case being handled.

Merge request reports