Package Manager's long running Composer operations can run afoul of short database connection timeouts

Created on 13 August 2025, 3 months ago

Problem/Motivation

Package Manager invokes Composer repeatedly. Some of those processes can take a while, and on some hosts, that long wait time will exceed the configured wait timeout for the database (i.e., how long it will wait for a connection to do something before it drops it), which can cause Package Manager to fail with "MySQL server has gone away" errors.

Steps to reproduce

Not sure exactly how to reproduce this, but it has happened when using Package Manager on some hosts.

Proposed resolution

If the database is MySQL, Package Manager's Composer runner should send a SET SESSION wait_timeout = $timeout query to it.

User interface changes

None.

Introduced terminology

None.

API changes

None, this would be an internal change to an internal, final class.

Data model changes

None.

Release notes snippet

TBD.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

package_manager.module

Created by

🇺🇸United States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024