Re: [Firebird-devel] op_que_events and database shutdown

2022-08-16 Thread Jiří Činčura
> Are aux connections closed when a database is shutdown? In that case you > should be able to detect the connection close. As I wrote in my initially, the socket is not closed. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] op_que_events and database shutdown

2022-08-16 Thread Mark Rotteveel
On 16-08-2022 11:01, Vlad Khorsun wrote: 16.08.2022 11:26, Jiří Činčura wrote: I just want to know there's nothing on protocol level I can use to help this situation. No response. So I suppose nothing?   I didn't found anything suitable. Are aux connections closed when a database is

Re: [Firebird-devel] op_que_events and database shutdown

2022-08-16 Thread Vlad Khorsun
16.08.2022 11:26, Jiří Činčura wrote: I just want to know there's nothing on protocol level I can use to help this situation. No response. So I suppose nothing? I didn't found anything suitable. Regards, Vlad Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] op_que_events and database shutdown

2022-08-16 Thread Jiří Činčura
> I just want to know > there's nothing on protocol level I can use to help this situation. No response. So I suppose nothing? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] op_que_events and database shutdown

2022-08-08 Thread Jiří Činčura
>What events might be missing ? Connection is shutdown and can't be > resurrected. New connection > will queue new events and can't miss one. Remember, first "queue > events" in connection immediately > receives most current counters. It could be compared with last known > counters before

Re: [Firebird-devel] op_que_events and database shutdown

2022-08-05 Thread Vlad Khorsun
05.08.2022 12:40, Dimitry Sibiryakov wrote: Vlad Khorsun wrote 05.08.2022 11:17: It could be compared with last known counters before re-connect, if necessary.   Bad idea. If database was reloaded counters are reset. If there was just connection (not database) shutdown, counters will not

Re: [Firebird-devel] op_que_events and database shutdown

2022-08-05 Thread Dimitry Sibiryakov
Vlad Khorsun wrote 05.08.2022 11:17: It could be compared with last known counters before re-connect, if necessary. Bad idea. If database was reloaded counters are reset. Another way could be to call callback with NULL events and 0 length but I'm not sure existing apps is ready to handle

Re: [Firebird-devel] op_que_events and database shutdown

2022-08-05 Thread Vlad Khorsun
03.08.2022 16:35, Jiří Činčura wrote: Hi *, op_que_events and waiting for events, database goes into shutdown. What to do next? Good question The socket is kept open, no luck there. And the "database shutdown" error is returned only after some next operation. Yes. This is done to

[Firebird-devel] op_que_events and database shutdown

2022-08-03 Thread Jiří Činčura
Hi *, op_que_events and waiting for events, database goes into shutdown. What to do next? The socket is kept open, no luck there. And the "database shutdown" error is returned only after some next operation. But as I'm waiting for the events, I kind of don't have next operation. Unless the