Skip to content

Add request and database query timeouts #411

@VaibhavAcharya

Description

@VaibhavAcharya

GoTrue currently has no timeout configuration at multiple levels:

  • HTTP server: http.Server in api.go has no ReadTimeout, WriteTimeout, or IdleTimeout
  • Database queries: storage/dial.go creates a plain pop.Connection with no timeout. No context.WithTimeout is used in the storage layer.
  • MySQL max_execution_time: Not configured, meaning long-running SELECT queries have no server-side limit.

Without these, a slow query or hung connection can cascade and degrade the entire service.

Moved from CI 29, 30, 31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions