SoftInstigate / restheart

Rapid API Development with MongoDB
https://restheart.org
GNU Affero General Public License v3.0
805 stars 171 forks source link

Does restheart has "NO_REQUEST_TIMEOUT"? #91

Closed chunlunglin closed 8 years ago

chunlunglin commented 8 years ago

Hi sir,

We setup the restheart to behind the firewall, now we have a problem. After running for a while, all connection seems remain in established state and never been released, the client side is using "System.Net.WebClient" to establish the connection. And finally, the total connections reach the limit and it cannot serve new request anymore.

Does restheart close the connection automatically if some timeout reached?

Thanks.

ujibang commented 8 years ago

setting NO_REQUEST_TIMEOUT is not currently possible.

However we will do it asap since we think this it is a critical issue. I created an issue in our jira instance to track and document this: https://softinstigate.atlassian.net/browse/RH-150

it will be fixed in next release 1.1.4

ujibang commented 8 years ago

hello @chunlunglin

we completed the task https://softinstigate.atlassian.net/browse/RH-150

now you can configure NO_REQUEST_TIMEOUT (and more). Have a look at the configuration file for in the connection-options section https://github.com/SoftInstigate/restheart/blob/master/etc/restheart-dev.yml

this will be available in next release 1.2 (you can of course build restheart to try)

chunlunglin commented 8 years ago

That's great! Thank you so much!