check for eagain return value when calling gen_udp:send()