Re: [python-tulip] RabbitMQ RPC problem with asyncio

2016-01-18 Thread Charles-François Natali
It's just a random guess, but does asyncio set TCP_NODELAY on the sockets? 2016-01-18 7:33 GMT+00:00 Yuriy Homyakov : > Hi! > > I am trying to implement RPC through RabbitMQ, described here > http://www.rabbitmq.com/tutorials/tutorial-six-python.html > > With pika and

Re: [python-tulip] RabbitMQ RPC problem with asyncio

2016-01-18 Thread Charles-François Natali
ded > transport._sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, True) > > is there any caveats? possible problems? > > On Monday, January 18, 2016 at 12:06:19 PM UTC+3, Charles-François Natali > wrote: >> >> It's just a random guess, but does asyncio set TCP_NODELAY on

Re: [python-tulip] Re: How can selectors module support EPOLLEXCLUSIVE ?

2016-04-01 Thread Charles-François Natali
2016-04-01 17:38 GMT+01:00 Naoki INADA : > > EPOLLEXCLUSIVE is usuful in multi process (prefork) servers too. > uWSGI supports both of prefork and thread, but I tested in single thread > mode (pure prefork). Yes, I thought about cases where FDs are shared through fork, but

Re: [python-tulip] Re: How can selectors module support EPOLLEXCLUSIVE ?

2016-04-01 Thread Charles-François Natali
EPOLLEXCLUSIVE is mostly useful in a multi-threaded context, to avoid the thundering herd problem when a FD is registered in several poll sets managed by several threads, The above benchmark you give is for uWSGI and meinheld which are implemented in C, probably using multiple threads, I'm not