Closed Niedzwiedzw closed 1 year ago
more context:
.connect()
hangs with 1 (!) database out ot 113 databases I'm connecting to.
internet connection is surprisingly OK for this one (5MB/s upload and download).
restarting my backend fixes it temporarily (1 connection works) , but next connection fails.
this could also be random, but I can't help but suspect that there is some internal state in my app that's left over after the procedure that "stuffs" next conections
How about setting SQLNET.OUTBOUND_CONNECT_TIMEOUT
in sqlnet.ora?
sadly I have no control over that database's configuration...
would it be hard to add a timeout to .connect()
in oracle-rust
?
sadly I have no control over that database's configuration...
You would set SQLNET.OUTBOUND_CONNECT_TIMEOUT in sqlnet.ora on the machine where you run Rust, not on the database tier. The potential locations for the file can be gleaned from this doc.
OH!!!! yes it worked ,thank you so much @cjbj you just saved my project, you are the best
My problem now is that some of the connections just hang indefinitely. my code:
can I either give it some timeout or break this process externally?