Add a timeout based overload of UDPConnection.recv. Fixes #540.