pgsql: Fix libpq's implementation of per-host connection timeouts.

2018-08-13 Thread Tom Lane
Fix libpq's implementation of per-host connection timeouts. Commit 5f374fe7a attempted to turn the connect_timeout from an overall maximum time limit into a per-host limit, but it didn't do a great job of that. The timer would only get restarted if we actually detected timeout within connectDBCom

pgsql: Fix libpq's implementation of per-host connection timeouts.

2018-08-13 Thread Tom Lane
Fix libpq's implementation of per-host connection timeouts. Commit 5f374fe7a attempted to turn the connect_timeout from an overall maximum time limit into a per-host limit, but it didn't do a great job of that. The timer would only get restarted if we actually detected timeout within connectDBCom

pgsql: Fix libpq's implementation of per-host connection timeouts.

2018-08-13 Thread Tom Lane
Fix libpq's implementation of per-host connection timeouts. Commit 5f374fe7a attempted to turn the connect_timeout from an overall maximum time limit into a per-host limit, but it didn't do a great job of that. The timer would only get restarted if we actually detected timeout within connectDBCom