Hi Andy,
Improper use? Potential bug? Your feedback is welcome:
Fixed, thanks. As client:info will only return information on executed commands, it will now return an empty string instead. I thought if query info could be returned instead, but this would also effect the client bindings, so I dropped the idea again..
let $c := client:connect('localhost', 1984, 'admin', 'admin') return client:query($c, "2+ 2")
will block the basex server for all http users and basexclient (s).
Good observation.. We should ensure that a user can never create a deadlock situation. But the given cases are tricky indeed, as there is currently no way to detect patterns of this kind. I have added a new GitHub issue [1], and I'll wait for an inspiration how to tackle this.
Christian