hi all,
I'm getting a TCPClient as well as an UDPServer work together in single process different threads.
I want each of them has a IOLoop, but I can't get it right.
if I use ioloop.IOLoop.instance() both the Client and Server it works, but I treated them as different instance, error occurs sometimes.
When I changed ioloop.IOLoop.instance() into ioloop.IOLoop() just to ensure the instance of IOLoop in Client and Server are different, it just don't work.
I read the code in ioloop.py, the instance method calls IOLoop._instance = IOLoop() when there aren't a global one.
I don't know why, is there something basic I don't know?
Thanks.