OAuth Module now enforces a configurable timeout on token-request futures so that stuck or slow authorization-server responses no longer block threads indefinitely. The new mule.oauth.token.request.timeout.millis system property sets the maximum time (in milliseconds) that OAuth Module waits for a token-request future to complete before cancelling it and raising an error.
-
Default:
60000(60 seconds). -
Recommended range: 30000–60000 ms. Set higher only if your authorization server is known to be slow.
-
Invalid values (non-numeric, zero, or negative) are ignored with a
WARNlog, and the default is used.
Set the property on the worker JVM, for example:
-Dmule.oauth.token.request.timeout.millis=45000
On CloudHub, add the property as a Properties entry on the deployment. No application redeploy of the runtime is needed.



