On Fri, Nov 21, 2014 at 02:01:09PM +0200, Vlad Khorsun wrote: > 21.11.2014 13:11, Michal Kubecek wrote: > > > > That's unfortunate... I suppose the easiest way out of this would be > > adding something like > > > > #ifdef WIN_NT > > if (!host_str && /* Windows version < Vista */) > > gai_hints.ai_family = AF_INET; > > #endif > > > > This should also take care of XP/2003 with IPv6 support (making the > > server listen on 0.0.0.0 by default). > > I can commit function which checks if IPv6 support is present (it will > be based on WSAEnumProtocols). Can it help ?
That would help to handle the case of IPv6 not supported. XP/2003 with IPv6 support would still need config setting to listen on 0.0.0.0 but that might be something we could live with. > I mean that message like this > > if (port->port_handle == INVALID_SOCKET) > { > gds__log("socket: error creating socket (family %d, socktype %d, > protocol %d", > pai->ai_family, pai->ai_socktype, pai->ai_protocol); > > > is missing important part - reason of failure ;) Ah, this one; I thought you meant the getaddrinfo() failure. I'll extend this message to include error code. Michal Kubecek ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel