Discussion:
Timeout on connections
Aliacta Support
2007-01-12 18:30:44 UTC
Permalink
Bart,
is there any way to set the timeoutlength for the socket trying to
connect to a postgres server.
And exactly what does it do when a timeout occurs?
That would be mainly handled by the RB TCPSocket, of which the
pgSQLcoreSocket is a subclass. And probably that particular aspect
is handled by the OS's network stack anyway, not even by RB.

To the best of my recollection there's no way to tinker with timeout
length in the RB TCPSocket.

The RB TCPSocket will raise one or several errors if it's unable to
connect. These errors will be reflected by pgSQL4RB which may
perhaps add some errors of its own.

(The errors raised by the RB TCPSocket are shown in the appropriate
pgSQLcoreSocket events. You can look this aspect up in the pgSQL4RB
manual under everything relating to errors in the socket.)

Marc
Mr. Bart Pietercil
2007-01-12 14:22:00 UTC
Permalink
Hi,

is there any way to set the timeoutlength for the socket trying to
connect to a postgres server.

And exactly what does it do when a timeout occurs?

I scanned through the manual but did not find related info

TIA

Bart Pietercil

Loading...