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

"inspec version" waits for connection timeout inside firewall #1537

Closed
makotots opened this issue Mar 5, 2017 · 1 comment
Closed

"inspec version" waits for connection timeout inside firewall #1537

makotots opened this issue Mar 5, 2017 · 1 comment
Labels
Type: Bug Feature not working as expected

Comments

@makotots
Copy link
Contributor

makotots commented Mar 5, 2017

Description

inspec version command waits for timeout inside certain firewall setup.

InSpec and Platform Version

InSpec: 1.16.0
Operating System distribution: Debian 7.0 (Wheezy)

Replication Case

I live in such a firewall where connection to https://rubygems.org/ times out:

$ time curl --connect-timeout 90 https://rubygems.org/
curl: (28) connect() timed out!

real    1m30.019s
user    0m0.004s
sys     0m0.004s
$

This causes inspec version to wait for timeout too:

$ time inspec version
1.16.0

real    1m0.816s <--- HERE
user    0m0.704s
sys     0m0.072s
$

Possible Solutions

#1538 makes inspec version return quickly:

$ time inspec version
1.16.0

real    0m1.303s <--- HERE
user    0m0.664s
sys     0m0.100s
$
@adamleff
Copy link
Contributor

adamleff commented Mar 5, 2017

Thanks for opening this issue and for PR #1538 which will correct this.

@adamleff adamleff added the Type: Bug Feature not working as expected label Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants