GNOME Bugzilla – Bug 598785
nanohttp fails to connect in Windows
Last modified: 2009-10-19 12:07:27 UTC
Created attachment 145684 [details] [review] libxml2-2.7.6-winsock-setsize.patch I'm using MinGW to cross compile (although I believe this is a winsock API issue, which should be compiler independent). The symptom manifests as: C:\> xmllint http://xmlsoft.org/index.html warning: failed to load external entity "http://xmlsoft.org/index.html" It looks like the problem was introduced with bug 559501; my research indicates that the BSD socket check for (socket_fd < FD_SETSIZE) is not valid with the winsock API [1], which does not use bit masks and treats the fd as an opaque value. For reference, running under wine I see socket fd values around 70. In Windows (XP) they are closer to 2000. I'm attaching a patch that ifdefs the new checks (just what that file needs... :) which fixes the problem for me. Note that nanoftp will need similar treatment if it is also updated as indicated in bug 559501. hope this helps! -spadix [1] http://msdn.microsoft.com/en-us/library/ms740141.aspx
Okay, this seems to make sense, applied, thanks ! Daniel