On Wed, Nov 19, 2014 at 12:11:06PM +0200, Vlad Khorsun wrote:
> 19.11.2014 11:42, Michal Kubecek wrote:
> > On Wed, Nov 19, 2014 at 10:01:32AM +0100, liviuslivius wrote:
> >>
> >> I downloaded today FB 3.0.0.31439 - but i can not connect to it
> >> And i do not see 3050 listen port with netstat -a
> >
> > Does setting "RemoteBindAddress 127.0.0.1" in firebird.conf help?
> 
>    No. And it can't help. Look at inet.cpp, line 775:
> 
>       // Prepare hints
>       struct addrinfo gai_hints;
>       memset(&gai_hints, 0, sizeof(gai_hints));
>       gai_hints.ai_family = (packet ? AF_UNSPEC : AF_INET6);
> 
>    How it could work on OS without support for AF_INET6 ?

Right, this is wrong. Actually, even on a system supporting IPv6, using
an IPv4 address in RemoteBindAddress creates an IPv6 socket with
v6-mapped address (which works so I didn't notice it). AF_INET6 should
only be used if host string is empty, otherwise, it would be better to
let getaddrinfo() decide. I'll test if AF_UNSPEC works correctly on
Linux (with IPv6 support).

                                                         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

Reply via email to