Re: Use epoll but still lose packet

2019-11-20 Thread lampahome
Dennis Lee Bieber 於 2019年11月21日 週四 上午2:17寫道: > On Wed, 20 Nov 2019 18:51:31 +0800, lampahome > declaimed the following: > > > > >I only use a while loop to catch events like below: > >import select, socket > >sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > >sock.bind() > > Doc

Re: Use epoll but still lose packet

2019-11-20 Thread Marko Rauhamaa
Dennis Lee Bieber : > (though as I don't really understand the use of this function, that > may just mean that all the events will be in the one return structure, > and not that there is only one event). I use epoll almost every day. You've done a good job explaining it. > Given that your c

Use epoll but still lose packet

2019-11-20 Thread lampahome
I use epoll to listen events to receive packet from remote client via tcp socket And I found it still lose packet from remote client when client sends 128 messages to me. Is there any tips to avoid this? thx I only use a while loop to catch events like below: import select, socket sock = socket.