Skip to content

4031, 'The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior #64

@EllenEyes

Description

@EllenEyes

Describe the bug
msyql interactive_timeout=30s,wait_timeout=30s
database connection failed aftrer wait_timeout
config PRE_PING doesnt works。

django's backend
dj_db_conn_pool.backends.mysql

Environment

  • Python Version:
    python3.12
    Django==3.0.3
    django-db-connection-pool==1.2.5

Traceback
Post traceback here.
4031, 'The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.
Optional: SQL and parameters
Post SQL and parameters here, Pay attention to hiding private information.
database settings here:
'default': {
#'ENGINE': 'django.db.backends.mysql',
'ENGINE': 'dj_db_conn_pool.backends.mysql',
'NAME': env_config.mysql_commodity_dbname,
'USER': env_config.mysql_commodity_username,
'PASSWORD': env_config.mysql_commodity_password,
'HOST': env_config.mysql_commodity_host,
'PORT': env_config.mysql_commodity_port,
'POOL_OPTIONS': {
'POOL_SIZE': 10,
'MAX_OVERFLOW': 5,
'RECYCLE': 2 * 60 * 60,
'PRE_PING': True,
'TIMEOUT': 60
}
}
PRE_PING doesnt works。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions