After connecting to a samba share, then disconnecting, netstat still shows that the ports are ESTABLISHED, even when the clients are on SUSPEND, HIBERNATE, or have SHUTDOWN. Looking over the samba documentation, I know now that I can set a period so those ports can TIMEOUT after said time. But without this variable: How long does the
A) Windows (Win 7 x64 Home) connection (445 shown in my case) take to close?
B) Linux (Ubuntu 11.04 x86) connection (139/445 shown in my case) take to close?
Best Answer
The best, trustworthy, answer I can find is from O'Reilly Online.
So basically, it is closed after just 4 hours! But as also said, it's best to use Samba's keepalive option to close this far gap. Of course, even then, since Samba's/Windows's/Etc. ability to close and reopen said ports is of no problem, I will resort to using deadtime instead to just close the unused gap; whether or not the client is still there.