add uv udp try send

Please review the commits and give me comments on them.
Move the assert to before the if.