Protect against UDP send buffer overflows.

- use as large send buffer as possible;
- convert a EAGAIN failure of sendto() into a timeout;
- add relevant global counters.
Update copyright year.