jamiejackson
12/10/2024, 12:46 AMjamiejackson
12/10/2024, 12:53 AMgavinbaumanis
12/10/2024, 1:20 AMwebsolete
12/10/2024, 1:28 AMwebsolete
12/10/2024, 1:28 AMErin Brewer
12/10/2024, 5:07 AMbdw429s
12/10/2024, 6:36 PMbdw429s
12/10/2024, 6:39 PMbdw429s
12/10/2024, 6:41 PMjamiejackson
12/10/2024, 7:00 PMjdbc:mysql://${DB_PRIMARY_HOST}:3306/${DB_PRIMARY_SCHEMA}?connectTimeout=10000&socketTimeout=120000&enablePacketDebug=true
• My connectTimeout (time to establish connection) is generous at 10s.
• My socketTimeout limits query execution to 2m.
I'd like to suggest description changes to the Lucee admin/docs (the docs don't mention the configs at all, or at least I couldn't find them) but I'm not even 100% clear I know which timeout Lucee's connectTimeout actually represents.Erin Brewer
12/10/2024, 7:03 PMIn Lucee, the Connection Timeout setting in the administrator panel controls how long Lucee waits when trying to establish a connection to an external resource, such as a database, SMTP server, or web service, before it times out and considers the attempt to have failed.
It sets a time limit for the initial connection phase. If the external resource does not respond or acknowledge the connection attempt within this timeframe, Lucee will terminate the attempt and throw an error.bdw429s
12/10/2024, 7:04 PMbdw429s
12/10/2024, 7:05 PMjamiejackson
12/10/2024, 7:05 PMjamiejackson
12/10/2024, 9:10 PMliveTimeout (don't ask my why): https://github.com/lucee/Lucee/blob/656d2b3d5bae80050a5250a02e8fdd6db4e4bd9b/core/src/main/cfml/context/admin/resources/language/en.json#L1575
• clear() (interesting recursive function, BTW): https://github.com/lucee/Lucee/blob/656d2b3d5bae80050a5250a02e8fdd6db4e4bd9b/core/src/main/java/lucee/runtime/db/DCStack.java#L164
• isLifeCycleTimeout() (based on liveTimeout and used by clear()): https://github.com/lucee/Lucee/blob/656d2b3d5bae80050a5250a02e8fdd6db4e4bd9b/core/src/main/java/lucee/runtime/db/DatasourceConnectionImpl.java#L[…]3bdw429s
12/10/2024, 9:12 PMbdw429s
12/10/2024, 9:13 PMbdw429s
12/10/2024, 9:14 PMjamiejackson
12/10/2024, 9:15 PM?connectTimeout=10000&socketTimeout=120000jamiejackson
12/10/2024, 9:16 PMjamiejackson
12/10/2024, 9:35 PM