Skip to content

chore: Remove timeout for public database proxies#8497

Closed
addidea wants to merge 1 commit intocoollabsio:v4.xfrom
addidea:fix-issue-7743
Closed

chore: Remove timeout for public database proxies#8497
addidea wants to merge 1 commit intocoollabsio:v4.xfrom
addidea:fix-issue-7743

Conversation

@addidea
Copy link
Copy Markdown

@addidea addidea commented Feb 20, 2026

Summary

This PR fixes issue #7743 by removing the 10-minute timeout limitation for public database proxies, allowing long-running queries (30m+) to complete successfully.

Changes

  • Added proxy_timeout 0; to Nginx stream configuration (infinite timeout)
  • Added proxy_connect_timeout 60s; to maintain reasonable connection establishment timeout
  • Applies to all database types (PostgreSQL, MySQL, MariaDB, MongoDB, Redis, etc.)

Technical Details

Modified app/Actions/Database/StartDatabaseProxy.php:

  • The Nginx stream proxy now uses proxy_timeout 0 which disables the read/write timeout
  • proxy_connect_timeout 60s prevents hanging connections during initial connection
  • This allows SELECT statements with large result sets to download without interruption

Testing

  • Long-running queries (30+ minutes) should no longer timeout
  • Normal database connections remain unaffected
  • Connection establishment still times out after 60 seconds (prevents dead connections)

Use Case

As mentioned in #7743, this enables queries like SELECT * that take 30+ minutes to download results, which previously failed due to the 10-minute proxy timeout.

Closes #7743

- Set proxy_timeout to 0 (infinite) to support long-running queries (30m+)
- Keep proxy_connect_timeout at 60s to prevent hanging connections
- Allows SELECT statements with large result sets to complete successfully

Resolves: #7743
@github-actions
Copy link
Copy Markdown
Contributor

This PR did not pass quality checks so it will be closed. If you believe this is a mistake please let us know.

@github-actions github-actions bot closed this Feb 20, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Don't timeout public database proxies after 10 min

1 participant