Skip to content

Commit 34e06ee

Browse files
committed
optimize: epoll max 1024 events
1 parent 625674b commit 34e06ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connstate/poll_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type epoller struct {
2929
}
3030

3131
func (p *epoller) wait() error {
32-
events := make([]syscall.EpollEvent, 128)
32+
events := make([]syscall.EpollEvent, 1024)
3333
for {
3434
n, err := isyscall.EpollWait(p.epfd, events, -1)
3535
if err != nil && err != syscall.EINTR {

0 commit comments

Comments
 (0)