Dyalog / Jarvis

APL-based web service framework supporting JSON or REST
https://dyalog.github.io/Jarvis/
MIT License
33 stars 6 forks source link

Don't close connection for in-process request #41

Closed bpbecker closed 1 year ago

bpbecker commented 1 year ago

The problem: Jarvis has a "ConnectionTimeout" setting intended to clean up connections that have gone dormant. The default value is 30 seconds. Currently, we may inadvertently close a connect for a request to endpoint that runs for longer than ConnectionTimeout.

The suggestion: Add a "in-progress" flag to the connection namespace that the connection reaper will respect and not close connections for requests that are being serviced.