diff --git a/lib/pg/connection.rb b/lib/pg/connection.rb index 4b9ea3942..39523943b 100644 --- a/lib/pg/connection.rb +++ b/lib/pg/connection.rb @@ -350,6 +350,9 @@ def ssl_attributes # Only pending data is read from the socket - the method doesn't wait for any outstanding server answers. # # Raises a kind of PG::Error if there was an error reading the data or if the socket is in a failure state. + # + # The method doesn't verify that the server is still responding. + # To verify that the communication to the server works, it is recommended to use something like conn.exec('') instead. def check_connection while socket_io.wait_readable(0) consume_input