Skip to content

Error: connect ETIMEDOUT -> sql.0.info.connection = true ? #374

@Scrounger

Description

@Scrounger

Describe the bug
If the adapter loses the connection to the database, the state sql.0.info.connection is not set to false, and the log shows Error: connect ETIMEDOUT.

To Reproduce
Steps to reproduce the behavior:

  1. Break the connection between sql server and iobroker
  2. Error Error: connect ETIMEDOUT is shown in the log
  3. state sql.0.info.connection is still true
  4. See error

Expected behavior
State sql.0.info.connection should be false, because there is not connection to the sql server.
Ok a timeout can happen, but after 5x timeouts in a row, you can expect there is no connection to the server any more

Versions:

  • Adapter version: 2.2.0
  • JS-Controller version: 5.0.19
  • Node version: v18.20.0
  • Operating system: ubuntu

Additional context

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