-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
make_iap_request.py does not have any timeout #1812
Comments
The kwargs parameter is passed from the method invocation through to this request, and per the documentation can include a timeout parameter. So it looks like timeout already is an optional argument, but it doesn't have a default value. Do you feel we should explicitly set it if it is left out? That would be easy to do. Please respond in a comment, and we will get this issue handled. Thanks. |
I think it is better to explicitly set a default if it is left out as I've seen this cause a program to hang in the past. From what I can gather from app engine docs, requests are limited to 60 seconds, so perhaps somewhere from 60-120 seconds is a good default. |
Sounds good. I'll do it and set you as a reviewer of the PR.
…On Thu, Dec 6, 2018 at 4:15 PM Trevor Edwards ***@***.***> wrote:
I think it is better to explicitly set a default if it is left out as I've
seen this cause a program to hang in the past.
From what I can gather from app engine docs, requests are limited to 60
seconds, so perhaps somewhere from 60-120 seconds is a good default.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1812 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE_N-Wi_MPe7Ld6tvW0hE1fzUNn6t64ks5u2bM-gaJpZM4YIplk>
.
--
Charles Engelke
GCP AppDev DPE
|
Sorry, I can't make you a reviewer, so it may take a few days to get this
closed. But see PR
#1912
…On Thu, Dec 6, 2018 at 4:17 PM Charlie Engelke ***@***.***> wrote:
Sounds good. I'll do it and set you as a reviewer of the PR.
On Thu, Dec 6, 2018 at 4:15 PM Trevor Edwards ***@***.***>
wrote:
> I think it is better to explicitly set a default if it is left out as
> I've seen this cause a program to hang in the past.
>
> From what I can gather from app engine docs, requests are limited to 60
> seconds, so perhaps somewhere from 60-120 seconds is a good default.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1812 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAE_N-Wi_MPe7Ld6tvW0hE1fzUNn6t64ks5u2bM-gaJpZM4YIplk>
> .
>
--
Charles Engelke
GCP AppDev DPE
--
Charles Engelke
GCP AppDev DPE
|
PR #1912 merged. |
Thanks! |
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/iap/make_iap_request.py
Did you change the file? If so, how?
Nope
Describe the issue
python-docs-samples/iap/make_iap_request.py
Lines 101 to 104 in 5e958b5
We could make timeout an optional argument to the function, maybe with a default of 60 seconds based on https://cloud.google.com/appengine/articles/deadlineexceedederrors ?
The text was updated successfully, but these errors were encountered: