performance problem of streaming data over TCP

2006-05-19 Thread Changhao
self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) ## Any comments or suggests is highly appreciated. Thanks, Changhao -- http://mail.python.org/mailman/listinfo/python-list

Re: performance problem of streaming data over TCP

2006-05-19 Thread Changhao
I figured out the reason. It was because of asyncore.dispatcher's inefficient implementation of messange sending. Instead of using its 'push' method. I directly call the underlying 'socket.send' and got the problem solved. Sorry about the spam. Thanks Changhao wrote: