The config:

Clients: Windows 7 64-bit, Server: Samba 3.0.37

Samba socket options: TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

One samba share is mapped to Windows computers as a network drive. From time to time it takes too long to open the mapped drive (15-20 seconds), in Windows explorer as well as in the console. I believe Windows loses a connection to the network share and tries to restore it from scratch.

So the question is - how to keep the connection alive or to speed up the connection process?

link|improve this question

54% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Low-tech approach - ping it or run a directory listing across it on a reoccurring interval (via a scheduled task from the target system).

link|improve this answer
That's of course a solution but maybe there is a more correct way to solve the problem? :) – disserman Oct 3 '10 at 0:05
You might be able to tune the time-outs on either end - connection idle on Samba or maybe response time-out on the Windows side. – user48838 Oct 3 '10 at 2:36
Yes but where exactly? – disserman Oct 3 '10 at 11:33
1  
You might start by looking at the "deadtime" setting. – user48838 Oct 3 '10 at 14:00
show 1 more comment
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.