This website requires JavaScript.
Explore
Help
Sign In
gluster
/
glusterd2
Watch
1
Star
0
Fork
0
You've already forked glusterd2
mirror of
https://github.com/gluster/glusterd2.git
synced
2026-02-05 12:45:38 +01:00
Code
Issues
Releases
Activity
Files
master
glusterd2
/
pkg
/
sunrpc
/
servercodec.go
Burak Serdar
b73370c553
Fix
#1321
: acceptLoop keeps a list of all sessions, and each session keeps a reference to the memory block allocated as a read buffer. This reference is there even if the session closes, so as long as acceptLoop runs, memory keeps growing. This should fix it by doing two things: 1) When session closes, remove the reference to the buffer. But that will still continue to leak sessions, because nothing removes elements from the session list. So, 2) remove the logic that keep track of sessions, instead, run two goroutines for each session, one to keep the session and run the server, and the other to terminate the first one when needed.
2018-12-07 09:07:46 +05:30
3.0 KiB
Raw
Permalink
Blame
History
View Raw
View Git Blame
Copy Permalink