Discussion:
[Exist-open] Switching to read-only mode!!! (Adam Retter)
Grant MacKenzie
2017-06-23 09:22:33 UTC
Permalink
1. Re: Switching to read-only mode!!! (Adam Retter)
Message: 1
Date: Thu, 22 Jun 2017 09:30:27 -0400
Subject: Re: [Exist-open] Switching to read-only mode!!!
Content-Type: text/plain; charset="utf-8"
Would anyone be interested in volunteering to add a PR to the documentation
repo to mention this?
Modern HTTP clients that use HTTP 1.1 and HTTP 2, by default connect
using persistent keep-alive connections. If you have to send a
Connection Close header to make the Expath Http-Client work, I would
think that this is a bug.
I just wanted to report back on this issue. We added the Connection: Close
header to all of our Expath Http-Client requests and after monitoring it
for
several days now, it appears to have corrected the issue, which we are very
happy about. Thanks for the suggestion!!!
What I find puzzling is why this is not documented anywhere. I looked
through the EXPath HTTP-Client Module documentation and I don't see any
references at all to the Connection:Close header.
I am also trying to understand why the default is to keep the connection
open.
How would one even use a previous http request in XQuery? There is no
handle or reference one can use, I don't think. I am wondering why the
default is to not close the connection?
Does anyone have any insights on this?
Nick
Take Care
Grant Mackenzie

Loading...