udp_send: add a time window for errors