Samba Users: We have Samba v1.9. and are having a small difficulty with the "socket options" and "??? timeout" parameters. When we set it to ?TCP_NODELAY, our log file indicates "Failed to set socket option TCP_NODELAY". This also happened on an earlier version of Samba as well. Has anyone else had a similar problem and found a solution? Also, when setting "keepalive", the log file contained "Failed to set socket option SO_KEEPALIVE". I began investingating our Samba configuration after determining that the throughput is much less (50%) of that indicated in the Samba documetation "speed" files. Increasing the debug level to a hire value did indicate in the nmbd log that ports 137 and 138 did bind successfully, but there was no mention of port 139, which the Samba documentation I have read indicates that this port is used by Samba. Any suggestions on how we can get the "socket options" and "??? timeout" to work would be greatly appreciated. The network adapter is an NE2000 in a 486DX2-66 with 16MB RAM. We are having a similar problem with an NE2000 in a PPro system. -- Hank Burton ==================================================================== Literati Information Technology, LLC wburton@literati.com PO Box 638 http://www.literati.com/ 68 High Street Morgantown, WV 26507-0638 (304) 296-8026
"HB" == Hank Burton <wburton@literati.com> writes: HB> Samba Users: HB> We have Samba v1.9. and are having a small difficulty with the HB> "socket options" and "??? timeout" parameters. When we set it to HB> ?TCP_NODELAY, our log file indicates "Failed to set socket HB> option TCP_NODELAY". This also happened on an earlier version of HB> Samba as well. Has anyone else had a similar problem and found a HB> solution? I had a vaguely similar problem on DG/UX, which turned out to be an #include problem. I had to #include netinet/tcp.h. You might want to grep the Samba sources for TCP_NODELAY; its usage is surrounded by an #ifdef. Put an #error directive inside the #ifdef and recompile, to see if the compiler is even seeing that TCP_NODELAY usage. John.
I keep getting these in my /var/log/samba-log.smb log file and a few hours after I get thousands of smbd's being created and the box runs out of processes. I had to increase the process numbers to 2048 so I had time to catch the rogue smbd's and kill them off. It doesn't seem to happen straight away either, it seems to take a few hours or possibly sometimes a few days too. This has only started happening on Samba-2.0.6. This is running on Linux 2.2.13 (Debian 2.1) Any ideas ? Alan. [1999/12/15 17:40:41, 0] lib/util_sock.c:set_socket_options(148) Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor) [1999/12/15 17:40:41, 0] lib/util_sock.c:set_socket_options(148) Failed to set socket option TCP_NODELAY (Error Bad file descriptor) [1999/12/15 17:40:41, 0] lib/util_sock.c:set_socket_options(148) Failed to set socket option SO_RCVBUF (Error Bad file descriptor) [1999/12/15 17:40:41, 0] lib/util_sock.c:set_socket_options(148) Failed to set socket option SO_SNDBUF (Error Bad file descriptor)