question

alligatorexpired avatar image
alligatorexpired asked

How can we increase http.request call timeout?

Sometimes we encounter HTTP timeouts when calling the API to spin up a game server instance (usually it takes 1-4 seconds). We need to increase the http.request call timeout; otherwise, we lose up to half of the sessions. How can we do this?

Matchmaking
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

The http.request call timeout is 2.5 seconds. If your service does not return within that period, the call will timeout, causing the failure. We suggest you try to use CloudScript using Azure Functions to implement it, because Azure Function has much longer-running scripts with longer HTTP call timeouts.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.