Compare commits

...

1 Commits

Author SHA1 Message Date
openhands
bd5ed70dbb Increase action timeout buffer from 5 to 100 seconds for debugging
This change increases the HTTP client timeout buffer from 5 to 100 seconds
when executing actions. The HTTP client waits for action.timeout + buffer
seconds before timing out, to allow the action execution server to timeout
first and return a proper error message.

With the increased buffer, we can better observe and debug timeout behavior
on the server side without the client timing out prematurely.

Co-authored-by: openhands <openhands@all-hands.dev>
2025-12-01 23:14:43 +00:00

View File

@@ -324,8 +324,8 @@ class ActionExecutionClient(Runtime):
'POST',
f'{self.action_execution_server_url}/execute_action',
json=execution_action_body,
# wait a few more seconds to get the timeout error from client side
timeout=action.timeout + 5,
# wait additional seconds to get the timeout error from server side
timeout=action.timeout + 100,
)
assert response.is_closed
output = response.json()