go-http-file-server icon indicating copy to clipboard operation
go-http-file-server copied to clipboard

TCP connections remain opened

Open fimmspin opened this issue 1 year ago • 2 comments

I noted that some TCP connections remain opened (even days...) and never closed, until i close the ghfs (windows). May be ghfs could track opened but inactive connections and close them at least once a day?

fimmspin avatar May 17 '24 05:05 fimmspin

I don't think ghfs hold connections. Maybe client side keep connection for some reason(e.g. for quick reconnect)? Then that's not ghfs's business. If you don't think so, please provide the exact way to reproduce and the way to how check the connection. BTW: Are you using https or plan http?

marjune163 avatar May 18 '24 10:05 marjune163

I think they are connections that the Chrome browser keeps open, even for days, until i close the browser. May be not ghfs fault, at least ghfs could close connections for real inactivity after xxx minutes, to keep server's connection number 'low'. I tried using plain http,, always using basic authentication.

fimmspin avatar May 19 '24 08:05 fimmspin