diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-24 04:01:09 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-24 04:01:09 +0000 |
commit | 90fc35b0f4766b44da7aaa159296bb0594c37a48 (patch) | |
tree | f6729fb56e9b9b75aa966cd66ee7cd7250b5584a /libpqpp/pq-connection.cpp | |
parent | PostgreSQL files prefixed with pq- (diff) | |
download | libdbpp-postgresql-90fc35b0f4766b44da7aaa159296bb0594c37a48.tar.bz2 libdbpp-postgresql-90fc35b0f4766b44da7aaa159296bb0594c37a48.tar.xz libdbpp-postgresql-90fc35b0f4766b44da7aaa159296bb0594c37a48.zip |
Remove 1ms sleep from ping, do the sleep in the test
Diffstat (limited to 'libpqpp/pq-connection.cpp')
-rw-r--r-- | libpqpp/pq-connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index db46dc5..74fce9e 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -110,7 +110,7 @@ void PQ::Connection::ping() const { struct pollfd fd { PQsocket(conn), POLLRDHUP | POLLERR | POLLHUP | POLLNVAL, 0 }; - if (PQstatus(conn) != CONNECTION_OK || poll(&fd, 1, 1)) { + if (PQstatus(conn) != CONNECTION_OK || poll(&fd, 1, 0)) { if (inTx()) { throw ConnectionError(conn); } |