TCP_NODELAY problem
David L. Aldridge
dlac at aldridge.com
Fri Nov 6 20:30:10 GMT 1998
smbclient is broken if TCP_NODELAY is enabled.
I am running FreeBSD 2.2.7 Stable.
1. Enable socket options = TCP_NODELAY
2. Run smbclient to access a share on a Win95 box
3. Turn 'recurse' on
4. cd to a directory that contains one directory and no files
5. Do a dir
6. The files which live in the directory below the default directory
will not be seen.
7. Eliminate TCP_NODELAY and they will be found as they should.
However life slows to a craws without TCP_NODELAY.
8. I found this because Amanda was consistently missing the same files
on backup.
9. Please see the debug data below. You will note that the path
being examined is: (note the ' ' - not good!!!)
aol30\ne t\*
The correct path is:
aol30\net\*
smb_vwv[12]=93 (0x5D)
smb_vwv[13]=1 (0x1)
smb_vwv[14]=1 (0x1)
smb_bcc=28
[000] 00 44 20 16 00 00 02 0E 00 04 01 00 00 00 00 5C .D ............\
[010] 61 6F 6C 33 30 5C 6E 65 74 5C 2A 00 aol30\ne t\*.
write_socket(3,97)
write_socket(3,97) wrote 97
got smb length of 356
--
David L. Aldridge
The Aldridge Company 281.368.0166 (fax: 281.368.0381)
http://www.aldridge.com/
Powered by Pentium/FreeBSD/Apache - Because it works.
More information about the samba
mailing list