Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operations: using an invalid host has a very long timeout #80

Open
pilhuhn opened this issue Jun 25, 2016 · 1 comment
Open

Operations: using an invalid host has a very long timeout #80

pilhuhn opened this issue Jun 25, 2016 · 1 comment

Comments

@pilhuhn
Copy link
Member

pilhuhn commented Jun 25, 2016

Suppose I somehow supply a bad host to the WS-client

client = OperationsClient.new(host: 'acme.org:42',

then the connect will hang for around a minute.

I am not sure though if it is possible to specify a shorter timeout for the connection setup.

pilhuhn referenced this issue in pilhuhn/hawkular-client-ruby Jun 27, 2016
@rubenvp8510
Copy link
Contributor

as far as I saw, there is no way to specify a timeout, we are using this gem: websocket-client-simple which inside use TCPSocket for the connection[1], that class doesn't seem to have a timeout option[2].

  1. https://github.com/shokai/websocket-client-simple/blob/master/lib/websocket-client-simple/client.rb#L20
  2. http://ruby-doc.org/stdlib-2.0.0/libdoc/socket/rdoc/TCPSocket.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants