Synchronization fix in web socket response timeout