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

curl commands may hang indefinately with timeout parameters #6

Open
EricLEdberg opened this issue Dec 21, 2020 · 3 comments
Open

curl commands may hang indefinately with timeout parameters #6

EricLEdberg opened this issue Dec 21, 2020 · 3 comments

Comments

@EricLEdberg
Copy link

EricLEdberg commented Dec 21, 2020

I was writing an application that used the set-parameter.sh program to toggle light "on" parameter. In my case, I'm using GE Z-Wave switches which work ok. My light bulb burn't out. When the next automated set-parameter.sh command executed to turn the light off (on=false), the set-parameter.sh program hung indefinately requiring me to manually kill the program. Manually executing set-parameter.sh also hung.

Curl commands should include both a --connect-timeout and --max-time options.

curl --connect-timeout 5 --max-time 60 example.com

I know it's easy to modify the programs and I've already updated my local copy. You may wish to do the same if/when you get bored.

The minute I replaced the light bulb it started working. Strange.

There is also a problem in the IOT GW and/or Z-Wave code which, in this case, repeatedly hung attempting to communicat with a Z wave light switch connected to a lamp with a bad bulb. Will test the bad bulb later to see if it repeats.

@mrstegeman
Copy link

@EricLEdberg would you want to submit a pull request with your changes?

@EricLEdberg
Copy link
Author

EricLEdberg commented Dec 22, 2020 via email

@mrstegeman
Copy link

Let me know if you need any help!

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