asyncio's create_datagram_socket
seems to leak socket objects when Protocol instances go out of scope.
The same is not the case with regular socket
objects.
Usage:
- Run this (optional pass the open file limit as positional argument, defaut: 256)
- In another terminal run
watch 'lsof -p <pid> | grep UDP | wc -l'
- Observe that the number stays at 50 during the sync run
- In the async run the number will increase until a "Too many open files" exception is raised