Skip to content

Erroneous use closed connection by timeout from pool #457

Closed

Description

@uasan

Hello.
We get an error write CONNECT_TIMEOUT undefined:undefined every day.

From the TCP dump, we can see that when the application starts, the client opens many connections, in each connection a response from postgres for authorization is received, some connections instead of sending a password send a FIN packet and close the connections, but it looks like this closed connection remains in the pool and later it is used for sending SQL requests, at this moment we get the indicated error.

To connect, we use the default settings, there are no specific settings, the connection takes place directly, Postgres 14.

Activity

  1. porsager commented on Aug 9, 2022

    @porsager
    Owner

    Hi @uasan .

    Does your application run at least the same amount of queries at startup as connections being opened?

  2. uasan commented on Aug 9, 2022

    @uasan
    Author

    yes, many requests are processed, but this error appears from time to time, this error sometimes occurs when a new connection is created to send a SQL request

  3. uasan commented on Aug 25, 2022

    @uasan
    Author

    We seem to have identified the problem, it is not on the side of postgres.js, I am closing the ticket

  4. porsager commented on Aug 25, 2022

    @porsager
    Owner

    Hey @uasan - glad to hear, and sorry for the silence, my time is limited these days.

    Still, I'm very curious to hear what the issue was?

  5. uasan commented on Aug 26, 2022

    @uasan
    Author

    When the network is congested, the socket does not respond within the specified time limit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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