Comments (7)
I believe that ruby establishes a connection when TCPSocket.new()
is called.
Some of the changes you made appear to thwart the existing logic that implements timeouts on establishing connections.
Instead of overriding blank_socket
, you may be better off wrapping connect_nonblock
with your SSL logic and return the SSL socket from the socket
method in your SSLSocket
implementation.
from riemann-ruby-client.
great input, i re-wrote as per your suggestions, much better now. There are still OpenSSL constants in TcpSocket unfortunately - i could override readpartial
and write
but that seems excessive.
from riemann-ruby-client.
My thought would be that it would make more sense to override the methods instead of including exceptions in a class that isn't relevant.
from riemann-ruby-client.
Makes sense. Another question regarding Riemman::Client
interface: do we want to have the TLS client exposed under client.tcp
? the current implementation which automatically chooses between UDP and TCP will probably be useless for people using TLS and client.tcp
may confuse people.
from riemann-ruby-client.
I added spec tests, however, i'm not sure if I sure if I should save the certificates in fixtures as at least the ca should match riemann instance certificates. How is testing done? i don't see the test config of riemann in the repo
from riemann-ruby-client.
@avishai-ish-shalom Want to submit this as a PR and we'll do from there?
from riemann-ruby-client.
Closed in favor of #24.
from riemann-ruby-client.
Related Issues (11)
- Protobuf serialization in Ruby very expensive HOT 4
- Rubinius error or UDP issue HOT 3
- Project description has a misspelling HOT 1
- ip6 support HOT 1
- Which versions of Ruby? HOT 3
- Support micro-seconds resolution HOT 1
- New gem release with 1.8 compat HOT 2
- How to format emails? HOT 1
- Error in the HOWTO HOT 1
- Possibly flakey test HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riemann-ruby-client.