Skip to content

Commit 30ed119

Browse files
committed
Small fix in README
1 parent 05f996b commit 30ed119

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ It also uses Ruby's DNS resolution instead of libpq's builtin functions.
244244

245245
Internally Pg always uses the nonblocking connection mode of libpq.
246246
It then behaves like running in blocking mode but ensures, that all blocking IO is handled in Ruby through a possibly registered `Fiber.scheduler`.
247-
When `PG::Connection.setnonblocking(true)` is called then the nonblocking state stays enabled, but the additional handling of blocking states is disabled, so that the calling program has to handle blocking states on its own.
247+
When `PG::Connection#setnonblocking(true)` is called then the nonblocking state stays enabled, but the additional handling of blocking states is disabled, so that the calling program has to handle blocking states on its own.
248248

249249
An exception to this rule are the methods for large objects like `PG::Connection#lo_create` and authentication methods using external libraries (like GSSAPI authentication).
250250
They are not compatible with `Fiber.scheduler`, so that blocking states are not passed to the registered IO scheduler.

0 commit comments

Comments
 (0)