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, |
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, |
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.openor onConnection.execute, so I wrappedConnection.openwithrunZonedGuarded(because it's an unhandled exception that occursntime later, not just at connecting).So, I tested it by stopping the Systemd Postgresql service and instantly I got that exception handled by the
runZonedGuardedonConnection.open.So, my questions are:
connectionLockin order to delayqueriesuntil connection is recovered? Is there a better alternative?Thanks.
All reactions