+1 vote

The docs for this are not clear enough for me, I did a quick search and also didn't find a satisfying answer, so here I am asking.

What is the behavior if I leave the timeout at 0. What happens if the server doesn't answer fast enough?

I will have some OAuth stuff going on client side which includes opening the browser and stuff, so I expect some wait time before the server can respond to the request.

Godot version v3.4.4
in Engine by (16 points)

1 Answer

+2 votes
Best answer

If timeout is 0, then HTTPRequest will never timeout as its associated timer will never start.

In Godot 3.4 and prior, timeout is defined in milliseconds with an integer. In Godot 3.5 and later, timeout is defined in seconds with a float.

by (12,869 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.