FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.2k stars 206 forks source link

Ping function and events #8122

Open asfernandes opened 1 month ago

asfernandes commented 1 month ago

fb_ping and Attachment::ping, in the case of tcp/ip connection, only checks the main connection.

When client registers events, I think it should also check the event connection, which may brake while the main one is fine and application could just stop to receive events.

dyemanov commented 3 weeks ago

I somewhat agree, but I know fb_ping() is also used to monitor response time from the server and checking the events port could slow it down a bit.

arthurbolsoni commented 1 week ago

Is it possible to add a callback to the connection so that it is called when the connection closes?