Fix HTTP hangs