[issue27271] asyncio lost udp packets

valdemar pavesi report at bugs.python.org
Wed Jun 8 19:23:13 EDT 2016


valdemar pavesi added the comment:

hi,

I did made a change, removing the queue and calling corotine. and now lost udp is bigger.

 def datagram_received(self, data, addr):
           asyncio.ensure_future(process_report(data))


@asyncio.coroutine
def process_report(data):


tcmpdump got  38122
and asyncio got just 20711 

2016-06-08 18:19:23,209 [INFO] 546  Total udp from fns: 20711 , queue size: 0
2016-06-08 18:19:23,209 [INFO] 417  Got 20711 json report from traffica server



all udp received will be send by tcp to another server. (Got 20711 json report )

----------
Added file: http://bugs.python.org/file43313/calling_corotine_wihout_queue_lost_bigger.png

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27271>
_______________________________________


More information about the Python-bugs-list mailing list