How long can the response return time be tolerated locally or on the ic mainnet?

On the local replica (launched with dfx start), I’m getting the SysFatal - Timeout expired error even though the service called by the HTTPS outcall (running on my computer) returns the response after max. 10 seconds.

I can confirm that it’s a timeout and not a transformation function issue (like the docs suggest), because if I make that service reply immediately with the same status and body, I don’t get the error.

Do you know why this happens? Maybe the local replica has a different timeout configuration?