Open CMogilko opened 5 years ago
It is more. After this query server doesn't respond at all. Ctrl-C can't help with stopping server. Only kill helps.
This is an issue discussed during the migration to Duktape see #5. There is a preview hook that needs to be setup for timeouts.
Exact fix is stubbed in code https://github.com/grandquista/rebirthdb/blob/next/src/extproc/js_job.cc#L34.
The docs https://rethinkdb.com/api/javascript/js/ say that default timeout for
r.js()
is 5 secs. But this queryr.js("while(true) {}")
doesn't timeouts. Build today from the next branch. But it works in rethinkdb-legacy.