panjf2000 / gnet

🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go.
https://gnet.host
Apache License 2.0
9.69k stars 1.04k forks source link

feat: support configurable I/O space to drain at a time in edge-trigg… #644

Closed lovefyf928 closed 2 weeks ago

lovefyf928 commented 3 weeks ago

…ered mode(#643)

1. Are you opening this pull request for bug-fixes, optimizations or new feature?

new feature

2. Please describe how these code changes achieve your intention.

在eventloop_unix.go中将read/write函数中以前的maxBytesTransferET移除变更为了配置的值,对EdgeTriggeredIOSpace配置进行了初始化。

3. Please link to the relevant issues (if any).

#643

4. Which documentation changes (if any) need to be made/updated because of this PR?

4. Checklist

panjf2000 commented 2 weeks ago

I haven't got a response to my request about adding new tests for almost a week, so I've created #646, thank you for the efforts here.