firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Ping function and events

Open asfernandes opened this issue 1 year ago • 2 comments

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.

asfernandes avatar May 18 '24 00:05 asfernandes

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.

dyemanov avatar May 28 '24 06:05 dyemanov

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

arthurbolsoni avatar Jun 08 '24 03:06 arthurbolsoni