[Twisted-web] Behaviour on Stopping Reactor

ROHIT LADDHA rohitladdh at gmail.com
Sun Dec 24 08:53:06 MST 2017


Hi,

I used following two libraries for udp listener

*from twisted.internet.protocol import DatagramProtocol*
*from twisted.internet import reactor*

When I do reactor.stop(), it processes all the buffered datagram packets.
That's fine but it should close the socket connection as well so that it
doesn't listen for any new packet. What's happening in my case is that
socket is getting a lot of packets continuously. If *reactor.stop()* is
called, the process doesn't exit because it's still getting packets from
the socket connection. Is this behaviour kept intentionally or we can
change it?

‌Regards
Rohit Laddha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-web/attachments/20171224/55a752dc/attachment.html>


More information about the Twisted-web mailing list