Fix tunnel receive timeout bug.