1

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?

1

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

  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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