Allenxuxu / gev

🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers.
MIT License
1.73k stars 194 forks source link

connector future #89

Closed StringNick closed 3 years ago

StringNick commented 3 years ago

problems with test TestServer_Start, I didn't change this test, on MacOS test passing, on ubuntu something wrong, is it package size is not big? (1024*1024) when we trying startClient in test, cannot find problem, he stoped on write, I suppose not full package sent and it split, I tried to change sz := rand.Int()%(1024) + 1, and it works on ubuntu.

StringNick commented 3 years ago

I fixed kqueue bugs, and improve perfomance by switching off write event handler

Allenxuxu commented 3 years ago

image @StringNick

StringNick commented 3 years ago

@Allenxuxu done