Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TCP keepalive and TCP keepalive time configurations
## Summary Related with #1489. In Active Record Oracle enhanced adapter 5.2, an Oracle error occurs when TCP keepalive time exceeds 600 seconds. The following ORA-03113 error occurred every 10 minutes when I tried to upgrade from Rails 5.1.6.1 (activerecord-oracle_enhanced-adapter 1.8.2) to Rails 5.2.2 (activerecord-oracle_enhanced-adapter 5.2.5). ```console stmt.c:243:in oci8lib_240.so: OCIError: ORA-03113: 通信チャネルで end-of-fileが検出されました (ActiveRecord::StatementInvalid) プロセスID: 24578 ``` I think that TCP Keepalive parameters depend on an application purpose. Therefore this PR allows users to change TCP keepalive parameters. The default behavior has not changed from Active Record Oracle enhanced adapter 5.2 so that breaking changes don't occur. ### Other Information TCP keepalive parameter names conform to ruby-oci8. http://www.rubydoc.info/github/kubo/ruby-oci8/file/docs/hanging-after-inactivity.md
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 deletions.
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