Skip to content

Conversation

@yahonda
Copy link
Collaborator

@yahonda yahonda commented Jun 12, 2017

This pull request enables TCP keepalive for CRuby users. Thanks to ruby-oci8 2.2.4 new features.

https://github.com/kubo/ruby-oci8/blob/master/docs/hanging-after-inactivity.md

@yahonda yahonda merged commit 9edb8f0 into rsim:nextval Jun 12, 2017
@yahonda yahonda deleted the nextval_rubyoci8_224_or_higher branch June 12, 2017 12:21
@kubo
Copy link
Contributor

kubo commented Jun 17, 2017

Could you change this line as follows?
It raises NotImplementedError on platforms where :tcp_keepalive_time isn't supported.

begin
  OCI8.properties[:tcp_keepalive_time] = 600
rescue NotImplementedError
end

@yahonda
Copy link
Collaborator Author

yahonda commented Jun 18, 2017

#1361 has been merged. Thanks for the useful comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants