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 602012 - glib fails to detect connection events
glib fails to detect connection events
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: win32
2.14.x
Other Windows
: Normal major
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-15 20:50 UTC by therve
Modified: 2018-05-24 12:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description therve 2009-11-15 20:50:01 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!
Comment 1 therve 2009-11-15 20:50:42 UTC
Just to be clear, it only affects Windows. I have only tests under XP.
Comment 2 Tor Lillqvist 2009-11-15 22:39:25 UTC
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.)
Comment 3 therve 2009-11-15 23:39:58 UTC
Would a test using pygobject good enough? I suspect I may be at least able to write a test not involving Twisted.
Comment 4 Tor Lillqvist 2009-11-16 00:12:19 UTC
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.
Comment 5 Alexander Larsson 2009-11-26 13:57:28 UTC
reassigning, as giowin32.c is in glib, not gio.
Comment 6 GNOME Infrastructure Team 2018-05-24 12:00:21 UTC
-- 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.