Annoying "invalid connection" error #2287

Open
opened 2023-07-05 09:43:43 +00:00 by Nighal · 2 comments

Hi master,
My server has been printing "invalid connection" error logs recently, I would like to ask, do you have any solutions for this error log? Does it because "*xorm.Session" object not be closed properly?
server log:

 err:invalid connection

daemon.log

 packets.go:36: read tcp server_host:port->db_host:port: i/o timeout

我的服务最近一直在打印错误日志"invalid connection", 请问什么原因会导致这个问题呢?是因为 "*xorm.Session" 没有被及时close吗?
server log:

 err:invalid connection

daemon.log

 packets.go:36: read tcp server_host:port->db_host:port: i/o timeout
Hi master, My server has been printing "invalid connection" error logs recently, I would like to ask, do you have any solutions for this error log? Does it because "*xorm.Session" object not be closed properly? server log: ``` err:invalid connection ``` daemon.log ``` packets.go:36: read tcp server_host:port->db_host:port: i/o timeout ``` ------------------------------------- 我的服务最近一直在打印错误日志"invalid connection", 请问什么原因会导致这个问题呢?是因为 "*xorm.Session" 没有被及时close吗? server log: ``` err:invalid connection ``` daemon.log ``` packets.go:36: read tcp server_host:port->db_host:port: i/o timeout ```
Author

config:
MaxConn: 30
MaxIdle:20

config: MaxConn: 30 MaxIdle:20
lunny added the
upstream
label 2023-07-05 10:43:05 +00:00
Owner

The information is printed by mysql driver and cannot be controlled by xorm. Maybe you can ask upstream.

The information is printed by mysql driver and cannot be controlled by xorm. Maybe you can ask upstream.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#2287
No description provided.