Fixed: incorrect timeout handling in http