tidwall / redcon

Redis compatible server framework for Go
MIT License
2.19k stars 158 forks source link

memory leaking when connection is reset with go 1.11.x #24

Closed guoyk93 closed 5 years ago

guoyk93 commented 5 years ago

I built a service using redcon and deployed it in production environment.

One day, for some reason (maybe unstable internal networking), massive connection reset occurred, I observed that reset connections are not released and memory keep leaking.

I recompiled my binary with go 1.10.x and 1.9.x, everything is ok, reset connections are released correctly and no memory leaks.

Problem only occur when compiled with go 1.11.x.

I'd investigate this issue and report any progress later.

guoyk93 commented 5 years ago

And I need some help with simulating tcp connection reset

tidwall commented 5 years ago

@yankeguo Are you still seeing this issue?

guoyk93 commented 5 years ago

@tidwall no, this issue never happened again.