diff --git a/handler.go b/handler.go index 072d61c..a2c29b5 100644 --- a/handler.go +++ b/handler.go @@ -165,6 +165,7 @@ func (h *Handler) sendfile(w http.ResponseWriter, data *packed.FileData) { h.copyfile(w, data) return } + defer tcp.Close() rawsock, err := tcp.SyscallConn() if err == nil {