开发者

Will Apache kill long-running page request threads?

I have a Spring web application running in Oracle Application Ser开发者_C百科ver, which is based on Apache. I'm afraid I don't know which component this question might apply to.

My question is - will threads from the connection pool ever be forcibly killed? On rare occasions, a page request can take much longer than usual. Can a page request ever take so long that Apache will simply stop the thread without notice?

If so, what settings define the timeout?

To give this some context, I'm locking resources for the duration of the page generation, and I want to ensure that all locks are released. I'm not concerned about HTTP timeouts - just that locks are released.


From my understanding, apache httpd server do have request timeout and the browser do have request timeout. Proxies do have timeout and will kill too long HTTP requests. DB Pools can be configured to have also request timeout but it should not by default (depend of configuration). Nobody will kill the thread through, it is just they will stop waiting for the response.

For the browser or any intermediary proxy, you can't change it excepted if you know exactly your final environement, and can control their configuration.

For apache httpd server, just go see the apache documentation. For your DB pool, go check your pool configuration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜