Add CFHTTP Connection pooling cleanup to background Controller thread

Description

for even better performance, rather than check each connection

Relying on the HttpClient to check if the connection is stale before executing a request. This is an expensive option that is not always reliable.

https://www.baeldung.com/httpclient-connection-management#eviction

this could be managed by Lucee's background controller process which runs every minute

https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/engine/Controler.java#L309

Activity

Show:

Xavier De Cock 29 September 2021 at 09:54

It’s been in production for a few weeks with nothing related to http noted, and a drop of 30% in our response time, so things go quite well (on 5.3.8.201)

Zac Spitzer 8 May 2021 at 19:00

Oh wow, excellent work!

Xavier De Cock 8 May 2021 at 18:11

Redid the original MR to be more extensive and shuffled quite a bit of code around

 

https://github.com/lucee/Lucee/pull/1318

 

Let me know if it might do the trick.

(I’m not 100% satisfied with how i manage the exception management, all for some feedback there).

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 4 April 2021 at 12:33
Updated 22 December 2022 at 16:42
Resolved 22 December 2022 at 16:42

Flag notifications