add socketTimeoutInConnection parameters

This commit is contained in:
justbk
2022-08-23 11:10:05 +08:00
committed by justbk
parent 996c7b7b59
commit 70af2f4220
2 changed files with 23 additions and 9 deletions

View File

@ -282,6 +282,14 @@ public enum PGProperty {
* value of zero means that it is disabled.
*/
SOCKET_TIMEOUT("socketTimeout", "0", "The timeout value used for socket read operations."),
/**
* The timeout value used for socket read operations when jdbc connecting. If reading from the server takes longer than
* this value, the connection is closed. This can be used as both a brute force global query
* timeout and a method of detecting network problems. The timeout is specified in seconds and a
* value of zero means that it is disabled.
*/
SOCKET_TIMEOUT_IN_CONNECTING("socketTimeoutInConnecting", "5", "The timeout value used for socket read operations when jdbc connecting."),
/**
* Cancel command is sent out of band over its own connection, so cancel message can itself get