Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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).

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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