What is the unit of connectionTimeout= "20"?

Gods, can you take a look at this problem for me
I configured connectionTimeout= "20", and then I let the thread sleep in the interface for 30 seconds, but I still have something back when I call this interface. In this way, this parameter is not useless, if it is a second, 30 seconds would have timed out, let alone milliseconds. -sharp-sharp-sharp problem description

Apr.11,2021

something connectionTimeout .


is millisecond, which should refer to the timeout for initiating a session request connection, not for maintaining a session after initiating a request. I remember that there is a keepAliveTimeout parameter that indicates the duration of the session connection, which usually defaults to 15s.


this is the timeout that drives the linked MYSQL server. Even if your thread sleeps, it's only a few hundred milliseconds

after 30 seconds of sleep and no change in the length of the MYSQL, connection.
Menu