I changed smbclient’s default timeout from 20 seconds to 200 seconds. The shorter timeout was causing problems with our backuppc server, especially with large files on Windows computers with virus protection.

Check out line 6246 in libsmb/libsmbclient.c, at least that’s where it is in 3.0.28.

context->timeout = 200000; /* 200 seconds */

Specify the samba config path when you run configure:

./configure --with-configdir=/etc/samba && make

I copied out the new smbclient and all seems good so far…

UPDATE:  The timeout isn’t in the smbclient binary, but rather the libsmbclient.so library, in my case in /usr/lib/samba.

*crosses fingers*

Leave a Reply

You must be logged in to post a comment.