GNOME Bugzilla – Bug 602012
glib fails to detect connection events
Last modified: 2018-05-24 12:00:21 UTC
A change in glib broke a couple of tests in the Twisted python library under Windows, probably around the 2.14 version. Basically, a client socket connecting to a server in the same process fails to received a connection event, whereas the server socket correctly accepts it. I had a quick look at the revision history, and r5600 in glib/giowin32.c may be the culprit, although it's a wild guess. I have only been able to reproduce this using a Twisted script, but I'd be happy to test any potential fix. http://twistedmatrix.com/trac/ticket/3925 is our internal bug report. Thanks!
Just to be clear, it only affects Windows. I have only tests under XP.
Without a minimal separate test case, it's hard to find and fix the problem. And anyway, 2.14 is so long ago that it is unlikely to be possible to just "revert" the change that affected your code. (So, your best bet is to ship an old version of GLib with your exectuable, or build the GLib DLL yourself with just the socket code reverted to what it was in the version that worked.)
Would a test using pygobject good enough? I suspect I may be at least able to write a test not involving Twisted.
If it makes it easier for you to write the test, then I guess yes, although I don't have Python currently installed on my development machine.
reassigning, as giowin32.c is in glib, not gio.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/247.