Displaying 20 results from an estimated 113 matches for "so_reuseport".
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
.../socket_helper.rb b/lib/unicorn/socket_helper.rb
index 18b0be7..2701d58 100644
--- a/lib/unicorn/socket_helper.rb
+++ b/lib/unicorn/socket_helper.rb
@@ -41,6 +41,15 @@ module Unicorn
# do not send out partial frames (Linux)
TCP_CORK = 3 unless defined?(TCP_CORK)
+
+ # Linux got SO_REUSEPORT in 3.9, BSDs have had it for ages
+ unless defined?(SO_REUSEPORT)
+ if RUBY_PLATFORM =~ /(?:alpha|mips|parisc|sparc)/
+ SO_REUSEPORT = 0x0200 # untested
+ else
+ SO_REUSEPORT = 15 # only tested on x86_64 and i686
+ end
+ end
when /freebsd/...
2013 Nov 04
2
Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze
...test/unit/test_socket_helper.rb
+++ b/test/unit/test_socket_helper.rb
@@ -189,7 +189,6 @@ class TestSocketHelper < Test::Unit::TestCase
port = unused_port @test_addr
name = "#@test_addr:#{port}"
sock = bind_listen(name, :reuseport => true)
- cur = sock.getsockopt(Socket::SOL_SOCKET, SO_REUSEPORT).unpack(''i'')[0]
- assert_equal 1, cur
+ assert sock.getsockopt(Socket::SOL_SOCKET, SO_REUSEPORT).bool
end if defined?(SO_REUSEPORT)
end
The error I get when I test 4.7.0 on debian squeeze (in a VM):
: 1) Error:
: test_reuseport(TestSocketHelper):
: Errno::ENOPROTOOPT: Protoco...
2013 Sep 23
1
Linux SO_REUSEPORT
I just read about Linux v3.9's SO_REUSEPORT feature and decided to implement it for Dovecot. Would be interesting to know how it works for people :) It's going to be in v2.2.6, which I'm planning on releasing tomorrow. Note especially the warning about the bug:
http://hg.dovecot.org/dovecot-2.2/rev/a991a0547daa
So the idea is that...
2010 Mar 04
1
Making tftpd (hpa) firewall frienldy
...d.c 2008-10-21 01:08:31.000000000 +0300
+++ tftp-hpa-0.49-tftpd-reuseport.c 2010-03-03 15:19:26.000000000 +0200
@@ -524,6 +524,11 @@
#ifndef __CYGWIN__
set_socket_nonblock(fd4, 1);
#endif
+ { int x = 1; setsockopt (fd4, SOL_SOCKET, SO_REUSEADDR, &x, sizeof (x));
}
+#ifdef SO_REUSEPORT
+ { int x = 1; setsockopt (fd4, SOL_SOCKET, SO_REUSEPORT , &x, sizeof
(x)); }
+#endif
+
memset(&bindaddr4, 0, sizeof bindaddr4);
bindaddr4.sin_family = AF_INET;
bindaddr4.sin_addr.s_addr = INADDR_ANY;
@@ -900,6 +905,14 @@
syslog(LOG_ERR, &qu...
2017 Apr 30
1
IMAP hibernate and scalability in general
...e new one.
>
>
> New processes aren't created until client_limit is reached in all the existing processes. When there are multiple processes they're all listening for new connections and whichever happens to be fastest gets it. Related to this, I'm thinking about implementing SO_REUSEPORT (https://lwn.net/Articles/542629/ <https://lwn.net/Articles/542629/> <https://lwn.net/Articles/542629/ <https://lwn.net/Articles/542629/>>) soon that would change the behavior a bit. Although its main purposes would be as a workaround to allow Dovecot restarts to work even though...
2017 Apr 24
2
IMAP hibernate and scalability in general
Hello,
Just to follow up on this, we've hit over 16k (default client limit here)
hibernated sessions:
---
dovecot 119157 0.1 0.0 63404 56140 ? S Apr01 62:05 dovecot/imap-hibernate [11291 connections]
dovecot 877825 0.2 0.0 28512 21224 ? S Apr23 1:34 dovecot/imap-hibernate [5420 connections]
---
No issues other than the minor bug I reported, CPU usage is
2016 Apr 01
2
knit and smbclient executed with different users but no error thrown
....
Connecting to 10.133.140.66 at port 445
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 19800
SO_RCVBUF = 87380
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
TCP_DEFER_ACCEPT = 0
session request ok
Doing spnego session setup (blob length=88)
got OID=1.2.840.48018.1.2.2
g...
2007 Jul 28
0
Ruby UDP Multicasting Binding Insanity
I''m writing a gem which binds multiple sockets to the same UDP
multicast port, basically like so..
socket = UDPSocket.new
socket.setsockopt( Socket::SOL_SOCKET, Socket::SO_REUSEPORT,
[1].pack("i_") )
socket.setsockopt(Socket::IPPROTO_IP, Socket::IP_ADD_MEMBERSHIP,
addresses)
socket.bind(Socket::INADDR_ANY, port)
data, meta = socket.recvfrom 1024
..which is working fine.. in OS X. But no love on my Solaris 10 x64
box. The problem? AFAICT, the availa...
2013 Sep 25
2
v2.2.6 released
...and %{orig_domain} expanding to the username exactly as sent by
the client (before any changes auth process made).
+ Added ssl_prefer_server_ciphers setting.
+ auth_verbose_passwords: Log the password also for unknown users.
+ Linux: Added optional support for SO_REUSEPORT with
inet_listener { reuse_port=yes }
- director: v2.2.5 changes caused "SYNC lost" errors
- dsync: Many fixes and error handling improvements
- doveadm -A: Don't waste CPU by doing a separate config lookup
for each user
- Long-runni...
2013 Sep 25
2
v2.2.6 released
...and %{orig_domain} expanding to the username exactly as sent by
the client (before any changes auth process made).
+ Added ssl_prefer_server_ciphers setting.
+ auth_verbose_passwords: Log the password also for unknown users.
+ Linux: Added optional support for SO_REUSEPORT with
inet_listener { reuse_port=yes }
- director: v2.2.5 changes caused "SYNC lost" errors
- dsync: Many fixes and error handling improvements
- doveadm -A: Don't waste CPU by doing a separate config lookup
for each user
- Long-runni...
2017 Aug 25
2
Cannot login to Samba server remotely
...net.c:1057(print_socket_options)
Socket options:
SO_KEEPALIVE = 8
SO_REUSEADDR = 4
SO_BROADCAST = 0
TCP_NODELAY = 4
TCP_KEEPCNT = 0
TCP_KEEPIDLE = 0
TCP_KEEPINTVL = 0
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 512
SO_SNDBUF = 34000
SO_RCVBUF = 66640
SO_SNDLOWAT = 2048
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
[2017/08/25 15:44:12.256761, 5, pid=24534, effective(0, 0), real(0, 0)]
../lib/util/util_net.c:1057(print_socket_options)
Socket op...
2017 Aug 15
2
cannot join windows 7 samba4-ad-dc fresh install, get NT_STATUS_INTERNAL_ERROR
...d.
Connecting to 192.168.19.2 at port 445
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 2626560
SO_RCVBUF = 1061808
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
Could not test socket option SO_SNDTIMEO.
Could not test socket option SO_RCVTIMEO.
TCP_QUICKACK = 1
TCP_DEFER_ACCEPT = 0
session request ok
Doing spnego sess...
2016 Apr 04
0
knit and smbclient executed with different users but no error thrown
...ptions:
> SO_KEEPALIVE = 0
> SO_REUSEADDR = 0
> SO_BROADCAST = 0
> TCP_NODELAY = 1
> TCP_KEEPCNT = 9
> TCP_KEEPIDLE = 7200
> TCP_KEEPINTVL = 75
> IPTOS_LOWDELAY = 0
> IPTOS_THROUGHPUT = 0
> SO_REUSEPORT = 0
> SO_SNDBUF = 19800
> SO_RCVBUF = 87380
> SO_SNDLOWAT = 1
> SO_RCVLOWAT = 1
> SO_SNDTIMEO = 0
> SO_RCVTIMEO = 0
> TCP_QUICKACK = 1
> TCP_DEFER_ACCEPT = 0
> session request ok
> Doing spnego session se...
2016 May 25
2
Regression: The 'net' command is now failing to login (UNKNOWN ENUM VALUE 1003?)
Hello:
Platform: CentOS 6.7 x86-64
$ rpm -qa | grep samba
samba-common-3.6.23-30.el6_7.x86_64
samba4-libs-4.2.10-6.el6_7.x86_64
ie-samba-utils-3.6.13-7.x86_64
samba-winbind-3.6.23-30.el6_7.x86_64
samba-client-3.6.23-30.el6_7.x86_64
samba-winbind-clients-3.6.23-30.el6_7.i686
samba-winbind-clients-3.6.23-30.el6_7.x86_64
Problems began after requiring SMB signing (I forgot the specifics but
it was
2015 Mar 10
2
net ads join fails
....87 bcast=192.168.2.255
netmask=255.255.255.0
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 4
TCP_KEEPCNT = 0
TCP_KEEPIDLE = 0
TCP_KEEPINTVL = 0
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 66608
SO_RCVBUF = 66608
SO_SNDLOWAT = 2048
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
Starting GENSEC mechanism spnego
Starting GENSEC submechanism gssapi_krb5
Received smb_krb5 packet of length 292
Received smb_krb5 packet of len...
2017 Dec 01
3
Intermittent failure of net ads join command with error "The transport connection is now disconnected"
...g to <AD Controller IP> at port 139
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 87040
SO_RCVBUF = 367360
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
TCP_DEFER_ACCEPT = 0
got OID=1.3.6.1.4.1.311.2.2.10
GENSEC backend 'gssapi_spnego' registered
GENSEC back...
2015 Sep 02
3
Cannot access the (old) samba server on my router from Linux
...ing to 192.168.10.1 at port 139
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 87040
SO_RCVBUF = 372480
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
TCP_DEFER_ACCEPT = 0
session request ok
cli_init_creds: user luca domain WORKGROUP
Domain=[WORKGROUP] O...
2003 Jun 30
0
Problems with Samba 2.2.7 and Mac OSX?
...ODELAY = 0
[2003/06/30 14:11:35, 5] lib/util_sock.c:print_socket_options(111)
socket option IPTOS_LOWDELAY = 0
[2003/06/30 14:11:35, 5] lib/util_sock.c:print_socket_options(111)
socket option IPTOS_THROUGHPUT = 0
[2003/06/30 14:11:35, 5] lib/util_sock.c:print_socket_options(111)
socket option SO_REUSEPORT = 512
[2003/06/30 14:11:35, 5] lib/util_sock.c:print_socket_options(111)
socket option SO_SNDBUF = 32768
[2003/06/30 14:11:35, 5] lib/util_sock.c:print_socket_options(111)
socket option SO_RCVBUF = 57344
[2003/06/30 14:11:35, 5] lib/util_sock.c:print_socket_options(111)
socket option SO_SNDLO...
2017 Sep 04
5
SPNEGO login failed: An internal error occurred
...ed sitename for realm 'RABADANTEN.DE'
name mx01#20 found.
Connecting to 127.0.1.1 at port 445
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 2626560
SO_RCVBUF = 1061808
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
TCP_DEFER_ACCEPT = 0
session request ok
Doing spnego session setup (blob length=96)
got OID=1.2.840.48018.1.2.2
got OID=1.2.840.113554.1.2.2
got OID=1.3.6.1...
2016 Mar 25
2
interdomain trust broken after upgrade to 4.1.17
...TOF#1B.20.192.168.0.250 -> SAMBAPDC
Enter netzadmin's password:Connecting to 192.168.0.250 at port 445
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 16
IPTOS_THROUGHPUT = 16
SO_REUSEPORT = 0
SO_SNDBUF = 16384
SO_RCVBUF = 16384
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
TCP_DEFER_ACCEPT = 0
Doing spnego session setup (blob length=74)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=not_defined_in_RFC4178 at please_ignore
Got challenge flags:...