bpowers/seshcookie — Issue #2: Memory leak
Author: GGGO
Created: 2011-11-13 15:38:25+00:00
State: open

There is a memory leak when passing in this function :
func NewSessionHandler(handler http.Handler, key string, rs *RequestSessions) *SessionHandler

I tried several test (wget ://127.0.0.1:8080 in a loop for) on your auth.go, memory always increase. If I remove func (h *SessionHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request), no more memory leak. Of course, removing this function, remove all functionalities of seshcookie.

I will try to memory profile.