Displaying 20 results from an estimated 147 matches for "sol_socket".
2002 Sep 06
0
use of setsockopt(SO_LINGER)
...== SSH_CHANNEL_RPORT_LISTENER) ?
@@ -2059,13 +2058,13 @@
continue;
}
/*
- * Set socket options. We would like the socket to disappear
- * as soon as it has been closed for whatever reason.
+ * Set socket options.
+ * Allow local port reuse in TIME_WAIT.
*/
- setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
- linger.l_onoff = 1;
- linger.l_linger = 5;
- setsockopt(sock, SOL_SOCKET, SO_LINGER, &linger, sizeof(linger));
+ if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &on,
+ sizeof(on)) == -1)
+ error("setsockopt SO_REUSEADDR: %s", strerr...
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
2007 Jul 24
3
Quota plugin, Maildir, dict backend loop problem
...7) = 3
gettimeofday({1185308526, 494477}, {420, 0}) = 0
read(20, "Lpriv/quota/storage\n", 4044) = 20
fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(9, 0x9271eb8, 8192) = -1 EAGAIN (Resource
temporarily unavailable)
fcntl64(9, F_SETFL, O_RDWR) = 0
setsockopt(9, SOL_SOCKET, SO_SNDTIMEO, "\2003\341\1\0\0\0\0", 8) = 0
write(9, "l\0\0\0\3SELECT current FROM quota W"..., 112) = 112
setsockopt(9, SOL_SOCKET, SO_RCVTIMEO, "\2003\341\1\0\0\0\0", 8) = 0
read(9, "\1\0\0\1", 4) = 4
read(9, "\1", 1)...
2016 Oct 05
3
Dev: new option to mark all tincd socket of a tincd process
I know i'm new to the list but i'd like to propose something for tincd
daemon.
I'd like to mark all sockets established by a tincd process with a mark
passed as an argument in the command line.
What could be the purpose of this new option?
The goal of this option is to be able to have several tincd process
running at the same time using the same port but using different ip.
In
2002 Nov 21
1
nmblookup not honoring smb.conf?
...fc810) = 0
ioctl(3, 0x891b, 0xbfffc810) = 0
ioctl(3, 0x8915, 0xbfffc7f0) = 0
ioctl(3, 0x8913, 0xbfffc7f0) = 0
ioctl(3, 0x891b, 0xbfffc7f0) = 0
close(3) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(3, {sin_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}}, 16) = 0
setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
getsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [0], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], [4]) = 0
getsockopt(3,...
2001 Jan 12
0
Socket options not properly set for ssh and sshd.
...tive, int keepalives)
+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
@...
2010 Mar 04
1
Making tftpd (hpa) firewall frienldy
...nge 69:69 -4 -s /tftpboot/
--- tftp-hpa-0.49/tftpd/tftpd.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 = IN...
2013 Nov 04
2
Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze
...00644
--- a/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::ENOPRO...
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
2008 Sep 17
4
dovecot 1.0.10 inet_addr(0.0.0.0)
...that is something wrong with network but i can't find
such option in conf
any Ideas??
strace output :
dup(3) = 5
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(6, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(995),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(6, {sa_family=AF_INET, sin_port=htons(995),
sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
listen(6, 8)...
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
2003 Mar 05
0
"rsync --daemon" and IPv4/v6 dual stack
...t;ai_next) {
- s = socket(resp->ai_family, resp->ai_socktype,
- resp->ai_protocol);
+ s = socket(resp->ai_family, resp->ai_socktype,
+ resp->ai_protocol);
- if (s == -1)
- /* See if there's another address that will work... */
- continue;
-
- setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
- (char *)&one, sizeof one);
-
- /* now we've got a socket - we need to bind it */
- if (bind(s, all_ai->ai_addr, all_ai->ai_addrlen) < 0) {
- /* Nope, try another */
- close(s);
- continue;
- }
-
- freeaddrinfo(all_ai);
- return s;
+ if (s == -1)...
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
...AF_INET6 : AF_INET, SOCK_STREAM, 0)
+ if opt.key?(:ipv6only)
+ defined?(IPV6_V6ONLY) or
+ abort "Socket::IPV6_V6ONLY not defined, upgrade Ruby and/or your OS"
+ sock.setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, opt[:ipv6only] ? 1 : 0)
+ end
sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
+ if defined?(SO_REUSEPORT) && opt[:reuseport]
+ sock.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1)
+ end
sock.bind(Socket.pack_sockaddr_in(port, addr))
IO_PURGATORY << sock
Kgio::TCPServer.for_fd(sock.fileno)
diff --git a/test/unit/te...
2016 Apr 07
5
UDP de-fragmentation problem
...a 10000 byte UDP packet
is send to the application, triggers the select(), then the
recvfrom(7...) fails with eagain
[...]
socket(PF_INET, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 7
fcntl(7, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(7, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(10001),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(7, {sa_family=AF_INET, sin_port=htons(10001),
sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
getpeername(7, 0x7ffdf3073470, [16]) = -1 ENOTCONN (Transp...
2006 Feb 05
2
R socket communication
...OCKET "Hello \n";
close SOCKET or die "close: $!";
The PERL server
#! /usr/bin/perl -w
use strict;
use Socket;
my $port = shift || 7890;
my $proto = getprotobyname('tcp');
socket(SERVER, PF_INET, SOCK_STREAM, $proto) or die "socket: $!";
setsockopt(SERVER, SOL_SOCKET, SO_REUSEADDR, 1) or die "setsock: $!";
my $paddr = sockaddr_in($port, INADDR_ANY);
bind(SERVER, $paddr) or die "bind: $!";
listen(SERVER, SOMAXCONN) or die "listen: $!";
print "SERVER started on port $port ";
my $client_addr;
while ($client_addr = accept(...
2013 Oct 22
1
[LLVMdev] System call miscompilation using the fast register allocator
...of such, is faulty and the allocator just
so happens to expose the bug.
Now the long version:
I'm building a simple test program that uses a 5-argument system call
using LLVM 3.2, like:
int main(int argc, char** argv) {
int val = 1;
socklen_t len = 4;
return setsockopt(-1, SOL_SOCKET, TCP_CORK, &val, len);
}
setsockopt is provided by uclibc, and is available as LLVM, leading to
optimised LLVM code like:
define i32 @main(i32 %argc, i8** nocapture %argv) unnamed_addr nounwind
uwtable {
entry:
%val = alloca i32, align 4
store i32 1, i32* %val, align 4
%0 = ptrtoi...
2005 Oct 10
1
Dovecot versus libsafe 2.0.15
...")}}, [16]) = 0
listen(6, 8) = 0
fcntl64(0x6, 0x3, 0, 0x8072ed8) = 2
fcntl64(0x6, 0x4, 0x802, 0x8072ed8) = 0
fcntl64(0x6, 0x1, 0, 0x8072ed8) = 0
fcntl64(0x6, 0x2, 0x1, 0x8072ed8) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(8, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
bind(8, {sin_family=AF_INET, sin_port=htons(993),
sin_addr=inet_addr("0.0.0.0")}}, 16) = 0
getsockname(8, {sin_family=AF_INET, sin_port=htons(993),
sin_addr=inet_addr("0.0.0.0")}}, [16]) = 0
listen(...
2006 Jun 18
1
winsock error.
Running Orbitron, it was O.K. for a while, now in a terminal, I get:
fixme:winsock:convert_sockopt Unknown SOL_SOCKET optname 0xff7f
err:winsock:WS_setsockopt Invalid level (1) or optname (65407)
AFAIK, the only difference in my setup between last time and now is to
install ddclient.
Any suggestions please?
Doug.
--
I'm only a beer teetotaller, not a champagne teetotaller.
- G.B. Shaw.
2005 Oct 11
3
dovecot won't launch
...NLY|O_LARGEFILE) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
dup(3) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
bind(5, {sa_family=AF_INET, sin_port=htons(143), sin_addr=inet_addr
("0.0.0.0")}, 16) = 0
getsockname(5, {sa_family=AF_INET, sin_port=htons(143),
sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
listen(5,...
2006 May 23
11
how to debug RTNETLINK invalid argument?
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit
limit 500
RTNETLINK answers: Invalid argument
I''m not sure whats wrong here, because i can successfully insert this
qdisc on other computers of mine.
How can i debug this?
Thanks!
George