New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebird 3: unable to connect to localhost when pulling the network-plug [CORE5679] #5945
Comments
Commented by: @hvlad This is old and well known behaviour of Windows networking, look for Media Sence: This should help |
Commented by: Rajko Thon (rthon) Thanks for the helpful comment! However, since I only became aware of the problem by switching to FB3 Thank you for the great work on FB anyway! |
Commented by: @hvlad Rajko, Thank you for confirmation. It seems that issue re-appears in FB3 because of its support of IPv6. I think ticket should be closed as there is nothing we could do at Firebird side |
Commented by: Sean Leyne (seanleyne) Vlad, Although I agree that the current issue is the result of different networking API calls required to support IPv6, which is outside of Firebird project control. Issue CORE4563 (related to network stack changes for local host) could indirectly help in this case, as well as provide performance improvements to local host/loopback DB connections. |
Commented by: Sean Leyne (seanleyne) Issue is result of Windows API functionality, outside of Firebird project control. |
Modified by: Sean Leyne (seanleyne)status: Open [ 1 ] => Resolved [ 5 ] resolution: Won't Fix [ 2 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: Rajko Thon (rthon)
Is related to CORE4563
Connecting to a FB3-Database via localhost works only as long as a network connection is available.
A disconnected machine is unable to connect to databases via isql or flamerobin.
Initial Ok-state:
SQL> connect localhost:k4.fdb user sysdba password masterkey;
Database: localhost:k4.fdb, User: SYSDBA
SQL> quit;
When the machine is disconnected from the network (network-cable plugged, Wifi off), the connection is no longer possible.
SQL> connect localhost:k4.fdb user sysdba password masterkey;
Statement failed, SQLSTATE = 08006
Unable to complete network request to host "localhost".
-Failed to locate host machine.
-The specified name was not found in the hosts file or Domain Name Services.
Although connection to 127 is still possible.
SQL> connect 127.0.0.1:k4.fdb user sysdba password masterkey;
Database: 127.0.0.1:k4.fdb, User: SYSDBA
Connecting via file access through the client library works too.
So:
Somehow FB3 seems to require a working network device to be able to connect to a database via localhost.
FB2.5 did not have this issue.
Maybe this is related to the new Providers mechanism in firebird.conf? (#Providers = Remote,Engine12,Loopback)
The FB3-Server-process also seems to have issues terminating when it was started with Providers are selected explicitly.
Stating 127.0.0.1 as localhost in the hosts-file under C:\Windows\System32\drivers\etc does not seem to help.
The text was updated successfully, but these errors were encountered: