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

I/O timeout when connecting to server that is not up #1766

Closed
smarterclayton opened this issue Apr 16, 2015 · 8 comments
Closed

I/O timeout when connecting to server that is not up #1766

smarterclayton opened this issue Apr 16, 2015 · 8 comments
Assignees
Labels
component/cli kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/P3

Comments

@smarterclayton
Copy link
Contributor

Should probably not try to connect for as long as it does (30s?). TCP connection establishment should be shorter in most cases.

@sosiouxme
Copy link
Member

Agreed, but there's no central place to configure that timeout...

@smarterclayton
Copy link
Contributor Author

Actually the default transport can do this for us. Just not sure it's the right place.

@danmcp danmcp added kind/bug Categorizes issue or PR as related to a bug. component/cli priority/P2 priority/P3 and removed priority/P2 labels May 11, 2015
@smarterclayton smarterclayton modified the milestone: 1.1.0 Jun 17, 2015
@jwforres jwforres removed this from the 1.1.0 milestone Sep 29, 2015
@smarterclayton
Copy link
Contributor Author

@juanvallejo can you close this against something you've done recently?

@juanvallejo
Copy link
Contributor

juanvallejo commented Jan 23, 2017

@sosiouxme

Agreed, but there's no central place to configure that timeout...

Would --request-timeout work in this case?

@smarterclayton A related PR for this would be #12571, however it only ensures that oc project <context_for_server_that_is_down> does not hang / fail, provided that the context name is valid.

Also, I am not able to replicate an I/O timeout that lasts for 30s, using latest master, all of my requests fail almost immediately if the current server is down:

$ kill <server_pid>
$ time oc login ...
error: dial tcp 10.13.137.149:8443: getsockopt: connection refused
oc login --server=https://10.13.137.149:8443 -u system:admin  0.14s user 0.01s system 115% cpu 0.136 total

$ time oc whoami
The connection to the server 10.13.137.149:8443 was refused - did you specify the right host or port?
oc whoami  0.14s user 0.02s system 115% cpu 0.133 total

EDIT: added time

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Jan 23, 2017 via email

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 4, 2018
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 3, 2018
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/P3
Projects
None yet
Development

No branches or pull requests

7 participants