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.67k stars 1.04k forks source link

[Bug]: Idle connections still occupy memory, the ringbuf cannot be released #662

Closed szza closed 44 minutes ago

szza commented 2 hours ago

Actions I've taken before I'm here

What happened?

After experiencing high traffic, when the connection becomes idle, the memory in the ringbuf still cannot be released.

5

Emerged after solving the problem #659

Major version of gnet

v2

Specific version of gnet

v2.6.1-cache-fix

Operating system

Linux

OS version

Linux 6.2.0-39-generic x86_64

Go version

1.21.6

Relevant log output

1

Code snippets (optional)

1

How to Reproduce

After experiencing high traffic, when the connection becomes idle, the memory in the ringbuf still cannot be released

Does this issue reproduce with the latest release?

It can reproduce with the latest release

panjf2000 commented 1 hour ago

v2.6.2 should have fixed this issue, please try it out and let me know if it works.

szza commented 1 hour ago

v2.6.2 should have fixed this issue, please try it out and let me know if it works.

Alright, I'll give it a try and get back to you later.

szza commented 44 minutes ago

v2.6.2 should have fixed this issue, please try it out and let me know if it works.

like nice.