TIMEOUT option
Sunday, 4 March 2012 · 3 messages
AB
Andy Bunce4 Mar 2012 00:12 #
I want to timeout long queries run via the client socket API (in fact using my node.js client)
I start the server with:
basexserver -c "SET TIMEOUT 2" -SHowever i am not seeing a timeout when executing queries. Am I doing this the right way?
/Andy
CG
Christian Grün4 Mar 2012 00:23 #
Quoted text · Andy Bunce · 5 lines
> I want to timeout long queries run via the client socket API (in fact using > my node.js client) > I start the server with: > > basexserver -c "SET TIMEOUT 2" -S
This is the right approach, as the following example shows:
Quoted text · Andy Bunce · 2 lines
> basexserver -c"set timeout 2" -S > basexclient -Uadmin -Padmin -q"(1 to 1000000000)[.=0]"
Timeout exceeded.
It may be that your particular query is not regularly checked for timeouts? Can you interrupt it in the GUI? How does it look like?
Christian
AB
Andy Bunce4 Mar 2012 00:56 #
Ok thanks I will investigate.
On Sat, Mar 3, 2012 at 11:23 PM, Christian Grün
<christian.gruen at gmail.com>wrote:
Quoted text · Christian Grün · 18 lines
> > I want to timeout long queries run via the client socket API (in fact > using > > my node.js client) > > I start the server with: > > > > basexserver -c "SET TIMEOUT 2" -S > > This is the right approach, as the following example shows: > > > basexserver -c"set timeout 2" -S > > basexclient -Uadmin -Padmin -q"(1 to 1000000000)[.=0]" > Timeout exceeded. > > It may be that your particular query is not regularly checked for > timeouts? Can you interrupt it in the GUI? How does it look like? > > Christian >
Written for BaseX 7.1. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery