Samba deadtime issue with windows client

Shalin Patel Shalin_Patel at
Tue May 8 09:25:02 GMT 2007



I am using samba 3.0.14, I am having a deadtime parameter of "10". Smbclient disconnects if there is no activity as expected but Windows client doesn't disconnect if the connection is idle. 


I debugged and found that in function conn_idle_all it shows "num_files_open =1", even though I don't have any files open, and "lastused" is always less than "deadtime". 


I debugged further and found that when windows client connects it opens file "." Hence the "num_files_open" is incremented making it one, and it regularly sends SMBtrans messages which updates the "lastused" and keep it less than "deadtime". 


I am running samba on a resource crunched machine and want to keep the number of connection to minimum and also want that the idle connections to get disconnected.


Can any one help me to make "deadtime" parameter working with windows client? My windows machine is windows server 2003; I have also tried with windows XP with same result. 





More information about the samba-technical mailing list