RE: Timeout parameters
Nagaura, Ryohei <nagaura.ryohei@jp.fujitsu.com>
From: "Nagaura, Ryohei" <nagaura.ryohei@jp.fujitsu.com>
To: "Nagaura, Ryohei" <nagaura.ryohei@jp.fujitsu.com>, "Jamison, Kirk" <k.jamison@jp.fujitsu.com>, "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Cc: 'Kyotaro HORIGUCHI' <horiguchi.kyotaro@lab.ntt.co.jp>, "coelho@cri.ensmp.fr" <coelho@cri.ensmp.fr>, "robertmhaas@gmail.com" <robertmhaas@gmail.com>, "MikalaiKeida@ibagroup.eu" <MikalaiKeida@ibagroup.eu>, "AYahorau@ibagroup.eu" <AYahorau@ibagroup.eu>, "michael@paquier.xyz" <michael@paquier.xyz>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-03-29T06:02:52Z
Lists: pgsql-hackers
Attachments
- socket_timeout_v12.patch (application/octet-stream) patch v12
- TCP_backend_v17.patch (application/octet-stream) patch v17
- TCP_interface_v17.patch (application/octet-stream) patch v17
Hi all. I found that connect_timeout uses pqWaitTimed(). Socket_timeout is related to pqWait() not pqWaitTimed(). Thus, I removed connect_timeout in my socket_Timeout patch. FYI, I summarized a use case of this parameter. The connection is built successfully. Suppose that the server is hit by some kind of accident(e,g,. I or Tsunakawa-san suggested). At this time, there is no guarantee that the server OS can pass control to the postmaster. Therefore, it is considered natural way to disconnect the connection from the client side. The place of implement of disconnection is pqWait() because it is where users' infinite wait occurs. Best regards, --------------------- Ryohei Nagaura
Commits
-
Add support TCP user timeout in libpq and the backend server
- 249d64999615 12.0 landed