Bug 1267 - Add better timeout handling to smbmount and client apps
Summary: Add better timeout handling to smbmount and client apps
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbmount (unmaintained) (show other bugs)
Version: 3.0.6
Hardware: All Linux
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact:
Depends on:
Reported: 2004-04-15 15:35 UTC by Wim Delvaux
Modified: 2010-04-26 03:31 UTC (History)
0 users

See Also:

solution for both problems (2.25 KB, patch)
2004-04-15 15:37 UTC, Wim Delvaux
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wim Delvaux 2004-04-15 15:35:36 UTC
The problem is that the timeout handling in open_socket_out is not correct.  It loops and 
increases the timeout between polls but resets the waited time instead of remembering how long 
it alread waited. 
As a consequence the default timeout of 20000 = 20 seconds lasts AGES 
I also added a parameter to smbmount to set the connect timeout.  Because of CIFS, the mount 
command tries to connect 3 times, waiting in all (in the case the timeout would have worked as 
expected) 60 Seconds which is long if you use the automounter. 
Hence I added the timeout=xxxxx option (just line NFS)
Comment 1 Wim Delvaux 2004-04-15 15:37:57 UTC
Created attachment 469 [details]
solution for both problems

this works (Tried on my PC = Linux Debian 2.6.5)
Comment 2 Stefan Metzmacher 2010-04-26 03:31:34 UTC
If it's still broken in 3.5, please reopen.
3.0 isn't supported anymore.