Replies: 1 comment 3 replies
-
Note: you may have a
In theory every operation that is sending/receiving bytes on the wire may fail.
I would not trust that connection anymore. It may be recoverable, it may not. Hence, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For the moment I don't want a Pool, just a simple connection in my backend.
Firstly, I wanted to know where it throws (the SocketException). On
Connection.open
or onConnection.execute
, so I wrappedConnection.open
withrunZonedGuarded
(because it's an unhandled exception that occursn
time later, not just at connecting).So, I tested it by stopping the Systemd Postgresql service and instantly I got that exception handled by the
runZonedGuarded
onConnection.open
.So, my questions are:
connectionLock
in order to delayqueries
until connection is recovered? Is there a better alternative?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions