fix infinite retry bug. also, reduce per-packet receive timeout