-
Notifications
You must be signed in to change notification settings - Fork 240
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
Allow custom timeout for pull requests #136
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR. With your change the user of the library could have a 30 second timeout. I'd expect we can change the socket timeout in Node. Would be good to include this in the PR, otherwise users will set the timeout to 30 seconds and then get confused when the socket times out. Could you check and change the Sockets too? |
What is the default Socket Timeout period ? If in your soft you set a timeout value less than 30s in Cam constructors, that is probably why you have an error. I actually encountered that error too, that's one reason why I have made this PR. Now in the constructor we can set both a timeout for standard requests and a eventsTimeout for PullMessages. What I did is:
This is what's happening:
I added 5 seconds for security, 1 seconds should be enough. I even have cameras that send the PullMessagesResponse ~1s before the timeout. That made me notice that I forgot about the timeouts of CreatePullPointSubscription and Renew. Could you please try it and tell me if it works for you ? Maybe I am all wrong about the socket timeout. |
Just a general comment for this PR and your others. I've got a load of work on at the moment so it may be a while before I get through them all. So don't worry if you don't see any merges until next week. I've just for a load of things to do for work and over the weekend. Thanks |
You are welcome :) |
Add the possibility to choose the timeout of a PullMessagesRequest.
Also add the possibility to choose the timeout of a http request.