Displaying 20 results from an estimated 1078 matches for "so_keepalive".
2012 Jan 10
1
Configuration file TCPKeepAlive option does not work reliably
Hi!
There are configuration knobs (TCPKeepAlive) to enable/disable the use of TCP keepalives both in the ssh client and server. Unfortunately some UNIX systems default to SO_KEEPALIVE=on and some to =off. This may even be settable on a per host basis (OpenBSD default net.inet.tcp.always_keepalive=1 ???).
For the TCPKeepAlive configuration knob I would like to propose changes along the lines showed in the attached patch (there is perhaps more elegant ways to do this). The patch...
2000 Aug 31
1
Error Bad file descriptor
Dear friends,
I receive the error "Error Bad file descriptor" when samba start, the
socket option in smb.conf have the line: "socket options = TCP_NODELAY
SO_KEEPALIVE SO_SNDBUF=4096"
My distribuition is Red Hat 6.2 and the Samba version is 2.0.69.
This is the error log /var/log/samba.smb:
[2000/08/31 14:07:06, 0] lib/util_sock.c:set_socket_options(148)
Failed to set socket option SO_RCVBUF (Error Bad file descriptor)
[2000/08/31 14:41:31, 0] lib/util_soc...
2001 Jan 29
0
Failed to set socket option
...c:(644)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2001/01/29 16:11:39, 1] smbd/files.c:(216)
file_init: Information only: requested 10000 open files, 1014 are available.
and first client connect
[2001/01/29 16:16:01, 0] lib/util_sock.c:(111)
in set_socket_options(7, SO_KEEPALIVE)
[2001/01/29 16:16:01, 0] lib/util_sock.c:(113)
lib/util_sock.c: set_socket_options before &options(7, SO_KEEPALIVE)
[2001/01/29 16:16:01, 0] lib/util_sock.c:(130)
lib/util_sock.c: set_socket_options for ...(7, SO_KEEPALIVE,65535,8,0,0)
[2001/01/29 16:16:01, 0] lib/util_sock.c:(111)
in se...
2001 Aug 24
2
[PATCH] SO_KEEPALIVE for port forwards
...)) {
debug("Connection to port %d forwarding "
@@ -781,6 +785,13 @@
if (newsock < 0) {
error("accept: %.100s", strerror(errno));
return;
+ }
+ /* Set keepalives if requested */
+ if (options.keepalives_forward &&
+ setsockopt(newsock, SOL_SOCKET, SO_KEEPALIVE,
+ (void *) &one, sizeof(one)) < 0)
+ {
+ error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));
}
newch = channel_new(rtype,
nextstate, newsock, newsock, -1,
--- openssh-2.9p2/readconf.c.keepalivetunnel Tue Apr 17 11:11:37 2001
+++ openssh-2.9p2/readconf.c...
Failed to set socket option SO_KEEPALIVE (Error Invalid argument) error on Samba 3.0.10 on Solaris 8
2006 Nov 30
1
Failed to set socket option SO_KEEPALIVE (Error Invalid argument) error on Samba 3.0.10 on Solaris 8
[2006/11/29 08:53:39, 0] smbd/server.c:(383)
open_sockets_smbd: accept: Software caused connection abort
[2006/11/29 10:21:20, 0] lib/util_sock.c:(202)
Failed to set socket option SO_KEEPALIVE (Error Invalid argument)
[2006/11/29 10:21:20, 0] lib/util_sock.c:(202)
Failed to set socket option TCP_NODELAY (Error Invalid argument)
[2006/11/29 10:21:20, 0] lib/util_sock.c:(1000)
getpeername failed. Error was Transport endpoint is not connected
[2006/11/29 10:44:26, 0] smbd/server.c:(383)...
1999 Sep 30
1
A little utility for checking socket settings
...on Solaris 7.
--dave
/*
* getsocketopts -- get the defaults
*
* This (on a Solaris 7 system) should say:
* % su root -c ./getsockopts
* Default SO_ACCEPTCON: accepting connections = 0
* Default SO_BROADCAST, broadcast allowed = 0
* Default SO_REUSEADDR, address recycling = 0
* Default SO_KEEPALIVE, send keepalive packets = 0
* Default SO_OOBINLINE, oob data folded inline = 0
* Default SO_SNDBUF, send buffer size = 8192
* getsocketopts: could not test SO_RCVLOWAT, receive low-water mark
* getsocketopts: could not test SO_SNDLOWAT, send low-water mark
* getsocketopts: could not test SO_RC...
2001 Jan 12
0
Socket options not properly set for ssh and sshd.
...epalives)
+packet_set_interactive(int interactive)
{
int on = 1;
@@ -1235,12 +1235,7 @@
/* Only set socket options if using a socket. */
if (!packet_connection_is_on_socket())
return;
- if (keepalives) {
- /* Set keepalives if requested. */
- if (setsockopt(connection_in, SOL_SOCKET, SO_KEEPALIVE, (void *) &on,
- sizeof(on)) < 0)
- error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));
- }
+
/*
* IPTOS_LOWDELAY, TCP_NODELAY and IPTOS_THROUGHPUT are IPv4 only
*/
--- sv0/packet.h Fri Sep 15 19:29:09 2000
+++ packet.h Tue Jan 2 16:40:45 2001
@@ -65,7 +65,7...
2003 May 28
3
share persistence problem
...red X's go away). If I close my explorer window (while the red X's
are there) and reopen it , they are gone. An attempt to reestablish
these dropped connections is immediately successful.
This is obviously a connection persistence issue and I've tried setting
both keepalive= and SO_KEEPALIVE (individually, of course) to no avail.
Any ideas?
My installation is samba 2.2.8 running as a daemon (not inetd) on
Solaris 8 configured to use a WINS server and provide authentication via
a PDC (same host as WINS server). I do have an lmhosts file in the
samba /lib directory with the PDC/WINS s...
2001 Nov 06
0
problems with failed to set_socket_option SO_KEEPALIVE(bad file descriptor) etc
I just started using SAMBA/LINUX about a month ago so I am a beginner! We
started using SAMBA share with NT about a month ago and everything was
working fine until today.
Problem we are getting when we are running from the SAMBA share - very slow
response and
looking in the log
receiving
Failed to set_socket_option SO_KEEP_ALIVE(bad file descriptor)
Failed to set_socket_option TCP_nodelay (bad
2005 Aug 24
0
Windows XP Home mounting a Samba share on Solaris 10
...workstation and run smbpasswd -a USER amd smbpasswd -e
USER, where USER is the account name.
When reviewing the log.smbd after attempting to
connnect to the Samba server from Windows the
following errors are generated -
[2005/08/23 18:05:12, 0] lib/util_sock.c:(185)
Failed to set socket option SO_KEEPALIVE (Error
Invalid argument)
[2005/08/23 18:05:12, 0] lib/util_sock.c:(185)
Failed to set socket option TCP_NODELAY (Error
Invalid argument)
[2005/08/23 18:05:12, 0] lib/util_sock.c:(185)
Failed to set socket option SO_KEEPALIVE (Error
Invalid argument)
[2005/08/23 18:05:12, 0] lib/util_sock.c:(185...
1999 Nov 15
2
Problem with socket options after upgrading to Samba 2.0.6
Hi there everyone,
Again another slight thing I noticed since I upgraded to Samba 2.0.6 from
2.0.5a. I'm using RedHat Linux on a Celeron 400 with kernel 2.2.13.
My socket options in smb.conf is set to "TCP_NODELAY IPTOS_LOWDELAY
SO_KEEPALIVE SO_SNDBUF=8192 SO_RCVBUF=8192". However I've started getting
the following everytime I SIGHUP to reload the configs and stop-start:
[1999/11/15 12:02:41, 0] lib/util_sock.c:set_socket_options(148)
Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
[1999/11/15 12:02:41...
2008 Oct 05
2
Performance tweaking from Ubuntu to a Macbook vs. Windows through DLink DIR-655
...Mbps
Wireless N (Connected at 130 Mbps ... Apple's fault)
================================================== ==
Macbook to Ubuntu: 20 Mbps
Macbook to Windows: 44 Mbps
That's a significant change.
So I changed the following line in Samba's smb.conf file:
socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=8192
SO_SNDBUF=8192
to
socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536
SO_SNDBUF=65536
After this, I noticed the following:
Wireless:
=========
Macbook to Ubuntu: 44 Mbps, with peaks up to 48 Mbps.
That's nearly double the performance!! Wi...
2006 Jun 12
1
3.0.22 on solaris10 socket error.
...-support \
--with-included-popt
When I start samba deamons, everything seems to work.
But when I connect to a share on solaris 10 from a windows client, I see
the message in log.smb file (log level 0) :
[2006/06/09 18:52:08, 0] lib/util_sock.c:set_socket_options(261)
Failed to set socket option SO_KEEPALIVE (Error Invalid argument)
What does it means ?
I've tried to unset all socket options parameters, but i receive the
same message.
In the config.log generated by configure, socket.h from solaris includes
is found and used.
And if I run samba whith log level 3, I see these messages in log.smb :...
2017 Jan 12
3
proposed change to ssh_connect_direct()
On Sat, Jan 7, 2017 at 2:30 PM, Peter Moody <mindrot at hda3.com> wrote:
> so I spent a bit of time looking at this and it seems like the only
> way to go, at least if I want to keep it in ssh_connect_direct(), is
> to use pthreads. further, it seems like getting that accepted is
> something of a long shot:
Sorry, pthreads is a non-starter.
I would have thought that using
2019 Mar 08
1
Dovecot v2.3.5 released
On 7.3.2019 23.37, A. Schulze via dovecot wrote:
>
> Am 07.03.19 um 17:33 schrieb Aki Tuomi via dovecot:
>
>>> test-http-client-errors.c:2989: Assert failed: FALSE
>>> connection timed out ................................................. : FAILED
> Hello Aki,
>
>> Are you running with valgrind or on really slow system?
> I'm not aware my buildsystem
2015 Jul 01
2
winbindd hangs and makes the system unuseable when DC is offline
...= yes
unix extensions = no
invalid users = root, vipco-admin
acl allow execute always = yes
printing = bsd
printcap name = /dev/null
disable spoolss = yes
load printers = no
deadtime = 10
use sendfile = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
Greetings,
Felix
2007 Apr 17
2
WinXp - Samba - Solaris Connection issue
...This is the output from log.smbd when the problem XP Pro system tries
to connect to the server:
[2007/03/28 14:47:01, 0] lib/util_sock.c:get_peer_addr(1229)
getpeername failed. Error was Invalid argument
[2007/03/28 14:47:01, 0] lib/util_sock.c:set_socket_options(261)
Failed to set socket option SO_KEEPALIVE (Error Invalid argument)
[2007/03/28 14:47:01, 0] lib/util_sock.c:set_socket_options(261)
Failed to set socket option TCP_NODELAY (Error Invalid argument)
[2007/03/28 14:47:01, 0] lib/util_sock.c:get_peer_addr(1229)
getpeername failed. Error was Invalid argument
[2007/03/28 14:47:01, 0] lib/util_...
2016 Feb 04
2
10GE performance issues
On Thu, Feb 04, 2016 at 09:03:21AM +0300, Владимир Терентьев wrote:
> Hi. Try add this to your config in global section.
>
> socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_THROUGHPUT SO_RCVBUF=262140
> SO_SNDBUF=262140
Sorry to step in, but SO_SNDBUF and SO_RCVBUF are almost always bad for
performance, unless you know *EXACTLY* what you're doing at a packet
level. A general advice on a mailing list without VERY close analysis
of the network...
2013 May 24
2
[samba4] smbd processes never die after logoff
...s with the member server whiches never stop. I can see it with the "smbstatus" command which point PID out to me and indeed with the ? ps aux | grep smbd ? I can see smbd processes whiches never die.
I have try this in the smb.conf file :
deadtime = 10
socket options = TCP_NODELAY SO_KEEPALIVE
But it doesn't work. This is a embarrassing problem for me because it takes resources of the server.
Thanks in advande for your help.
PS: here is my smb.conf for the member server :
[global]
workgroup = MYDOMAIN
security = ADS
realm = MYDOMAIN.PRIV
encrypt passwords = yes
i...
2014 Feb 13
4
Slow Samba transfer
...and tried to improve it
following several advices found around the net, but I did not see any
difference.
Things I tried are:
strict allocate = yes
read raw = yes
write raw = yes
strict locking = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536
SO_SNDBUF=65536 SO_KEEPALIVE
min receivefile size = 16384
use sendfile = true
aio read size = 1
aio write size = 1
; vfs objects = aio_fork
in various combinations.
Last option does not seem to be supported in Wheezy:
[2014/02/14 00:47:09.185334, 0] smbd/vfs.c:173(vfs_init_custom)
error probing vfs modu...