http: more robust sync-timeouts handling