forked from joeferner/node-oracle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement connection.isConnected(), don't segfault when doing work on…
… closed connection We need to be able to detect closed connections so that we can more easily integrate with generic-pool. That module has a validate() hook which pairs nicely with the connection.isConnected() change I'm proposing here. Test scenario for reproing segfault issue: * Open connection * Set timer for closing connection with connection.close() after 10 seconds * Wait for timer to activate and close connection * Try to run connection.execute('SELECT 1 FROM DUAL') * Segfault occurs * After this change, it will throw an error instead of segfaulting
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters