24.02.2017 20:14, Mark Rotteveel wrote:
...
> It would be nice to know exactly what changes are involved in the wire
> protocol for statement-specific timeouts without having to dive into the
> implementation.

   Read, please, "Remote client implementation notes" at both 
README.statement_timeouts
and README.session_idle_timeouts. The only piece not described there could be 
the way how
Statement::setTimeout() pass user timeout value with op_execute and op_execute2 
packets.
It is easy - if protocol version is at least 15, add 4-bytes with timeout value 
to the
contents of op_execute\op_execute2 packet:

https://github.com/FirebirdSQL/firebird/commit/2c49e6fcf20b55cd87d497dae7309c593a68bd62#diff-eabce942e207c1fedfc16fe4a70fd258

> BTW: What happened to protocol v14? It seems Firebird 4 jumped to
> protocol v15.

   Initial implementation of protocol 14 contains bug. When that bug was fixed 
protocol
15 was introduced.

Regards,
Vlad

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to