search for: so_linger

Displaying 20 results from an estimated 20 matches for "so_linger".

2010 Jun 02
1
rsync 3.0.7 network errors on MS-Windows
I am experiencing intermittent network failures on rsync 3.0.7 built using cygwin for Windows-XP (SP2). I am using GCC v4.4.2 and the latext version of cygwin. The rsync error long indicates things like: rsync: writefd_unbuffered failed to write 4092 bytes to socket [generator]: Connection reset by peer (104)rsync: read error: Connection reset by peer (104) rsync error: error in rsync
2002 Sep 06
0
use of setsockopt(SO_LINGER)
I would like to remove setsockopt(SO_LINGER), as there does not seem to be a reason for its use. If you know of specific reasons we should keep any of these let me know, or run this patch in local test trees where possible. This is against OpenBSD, but should apply to portable with some fuzz. Index: channels.c ============================...
1999 Sep 30
1
A little utility for checking socket settings
...TCON: accepting connections" }, { SO_BROADCAST, "SO_BROADCAST, broadcast allowed" }, { SO_REUSEADDR, "SO_REUSEADDR, address recycling" }, { SO_KEEPALIVE, "SO_KEEPALIVE, send keepalive packets" }, /* { SO_LINGER, "SO_LINGER, lingers on close"}, */ { SO_OOBINLINE, "SO_OOBINLINE, oob data folded inline"}, { SO_SNDBUF, "SO_SNDBUF, send buffer size" }, { SO_RCVLOWAT, "SO_RCVLOWAT, receive low-water mark"}, {...
2000 Nov 05
0
Socket options not properly set for ssh and sshd.
...r, the keepalive value ought to be set in any case. My suggestions: 1. Move keepalive setsockopt out of packet_set_interactive, as it's not related to interactive vs non-interactive. Instead, make the keepalive setsockopt call in: ssh -- in sshconnect.c, after the setsockopt for SO_LINGER, right before call to packet_set_connection. sshd -- in sshd.c, after the setsockopt for SO_LINGER. 2. Secondarily, for ssh and sshd, ensure packet_set_interactive is called for ssh2 also if appropriate. ----------------------- As an aside (as information for anyone else with the...
2001 Jan 12
0
Socket options not properly set for ssh and sshd.
...t_interactive(interactive); /* Clear agent forwarding if we don\'t have an agent. */ authfd = ssh_get_authentication_socket(); --- sv0/sshconnect.c Fri Sep 22 23:15:57 2000 +++ sshconnect.c Tue Jan 2 16:40:45 2001 @@ -304,6 +304,15 @@ linger.l_linger = 5; setsockopt(sock, SOL_SOCKET, SO_LINGER, (void *) &linger, sizeof(linger)); + if (options.keepalives) { + static const int on = 1; + + /* Set keepalives if requested. */ + if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *) &on, + sizeof(on)) < 0) + error("setsockopt SO_KEEPALIVE: %.100s", strerror(er...
2006 Dec 08
1
linux sockets on centos (slightly off topic)
...connection? Thanks, Jerry ---------------------------- This text has been taken from the original FAQ. 2.1 - How can I tell when a socket is closed on the other end? From Andrew Gierth ( andrew at erlenstar.demon.co.uk): AFAIK: If the peer calls close() or exits, without having messed with SO_LINGER, then our calls to read() should return 0. It is less clear what happens to write() calls in this case; I would expect EPIPE, not on the next call, but the one after. If the peer reboots, or sets l_onoff = 1, l_linger = 0 and then closes, then we should get ECONNRESET (eventually) from read(),...
2004 Mar 05
0
Unexpected error
...r side i have win98 with rsync 2.6.0. I try to connect them over SSL using STUNNEL 4.0.5 and OpenSSL 0.9.7c . my stunnel.conf : CAfile=C:\NARZ?DZIA ADM\SHAREWARE\Stunnel\RootCert.pem client=yes debug=7 output=C:\NARZ?DZIA ADM\SHAREWARE\Stunnel\STUNNEL.LOG verify=2 socket=r:TCP_NODELAY=1 socket=l:SO_LINGER=1:60 [RSYNC] accept = 873 connect = 192.168.0.234:873 TIMEOUTclose = 0 And after rsync rsync://localhost/PECET /kosz i get : There is a screen of stunnel : 2004.03.05 16:28:02 LOG5[16391531:16429267]: stunnel 4.05 on x86-pc-mingw32-gnu WIN32 with OpenSSL 0.9.7c 30 Sep 2003 2004.03.05 16:28:02 L...
2002 Oct 15
3
OpenSSH 3.5 released
...default behavior of sshd(8) with regard to user settable environ variables has changed: the new option PermitUserEnvironment is disabled by default, see sshd_config(5). * The default value for LoginGraceTime has been changed from 600 to 120 seconds, see sshd_config(5). * Removed erroneous SO_LINGER handling. Checksums: ========== - MD5 (openssh-3.5p1.tar.gz) = 42bd78508d208b55843c84dd54dea848 - MD5 (openssh-3.5.tgz) = 79fc225dbe0fe71ebb6910f449101d23 Reporting Bugs: =============== - please read http://www.openssh.com/report.html and http://bugzilla.mindrot.org/ OpenSSH is brought to...
2002 Oct 15
3
OpenSSH 3.5 released
...default behavior of sshd(8) with regard to user settable environ variables has changed: the new option PermitUserEnvironment is disabled by default, see sshd_config(5). * The default value for LoginGraceTime has been changed from 600 to 120 seconds, see sshd_config(5). * Removed erroneous SO_LINGER handling. Checksums: ========== - MD5 (openssh-3.5p1.tar.gz) = 42bd78508d208b55843c84dd54dea848 - MD5 (openssh-3.5.tgz) = 79fc225dbe0fe71ebb6910f449101d23 Reporting Bugs: =============== - please read http://www.openssh.com/report.html and http://bugzilla.mindrot.org/ OpenSSH is brought to...
2015 Jan 15
10
Socket behavior change from 6.5 to 6.6
I will try to explain this as best I can. I have two computers; one a Supermicro X10SAE running CentOS 6, the other a very old DOS box.[*] The DOS box runs a CCD camera, sending images via Ethernet to the X10SAE. Thus, the X10SAE runs a Python server on port 5700 (a socket which binds to 5700 and listens, and then accepts a connection from the DOS box; nothing fancy).[**] The DOS box connects to
2002 Jan 06
3
sftp/scp performance testing
Folks, I've noticed poor performance using sftp. If anyone has any advice on how to improve performance, I'd like to hear it. Test simply involved transferring a single 143MB MP3 file using defaults for all the program configs. The opensshd 3.0.2p1 server is used in all tests. Software: openssh suite 3.0.2p1 psftp (putty sftp client) latest dev snapshot pscp (putty scp client) latest
1999 Nov 25
0
ANNOUNCE: openssh-1.2pre15
...ng on Solaris Full ChangeLog: 19991125 - More reformatting merged from OpenBSD CVS - Merged OpenBSD CVS changes: - [channels.c] fix packet_integrity_check() for !have_hostname_in_open. report from mrwizard at psu.edu via djm at ibs.com.au - [channels.c] set SO_REUSEADDR and SO_LINGER for forwarded ports. chip at valinux.com via damien at ibs.com.au - [nchan.c] it's not an error() if shutdown_write failes in nchan. - [readconf.c] remove dead #ifdef-0-code - [readconf.c servconf.c] strcasecmp instead of tolower - [scp.c] progress meter ove...
2015 Jan 21
0
Socket behavior change from 6.5 to 6.6
...uld reveal this. But what happens if the server writes to the socket, and the client never reads? (We do, as it happens, have access to the client software, so the protocol can be fixed eventually. But I'm still curious as to the answer.) 3) Several people suggested using SO_REUSEADDR and/or an SO_LINGER of zero to drop the socket out of TIME_WAIT, but does the socket enter TIME_WAIT as soon as the client crashes? I didn't think so, but I may be wrong. 4) Several people suggested SO_KEEPALIVE, but those occur only after hours unless you change kernel parameters via procfs and/or sysctl, and whe...
2007 Sep 14
1
[Bug 1288] ssh-add on Cygwin -- can't access ssh-agent socket
...d [family=AF_INET, type=SOCK_STREAM, protocol=IPPROTO_IP, dwFlags=WSA_FLAG_OVERLAPPED] socket (708) bound [name=127.0.0.1] socket (708) determined its local name [name=127.0.0.1:2436] socket (708) established for listening [backlog=128] socket (708) set one of its options [level=SOL_SOCKET, optname=SO_LINGER, l_onoff=1, l_linger=240] socket (708) closed process detached the next process to start and make a socket call will be spyed process attached, command line='C:\cygwin\bin\ssh-add.exe "/cygdrive/c/Documents and Settings/ueltschit/.ssh/id_dsa"' socket (704) created [family=AF_INET,...
1999 Nov 11
0
CERT Advisory CA-99.14 - Multiple Vulnerabilities in BIND (fwd)
...This vulnerability involves a failure to properly validate SIG records, allowing a remote intruder to crash named; see the impact section for additional details. SIG record support is found in multiple versions of BIND, including 4.9.5 through 8.x. Vulnerability #3: the "so_linger bug" By intentionally violating the expected protocols for closing a TCP session, remote intruders can cause named to pause for periods up to 120 seconds. Vulnerability #4: the "fdmax bug" Remote intruders can consume more file descriptors than BIND can properly...
2001 May 31
0
Bug in scp
...= 1000 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 connect(4, {sin_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("127.0.0.1")}}, 16) = 0 567 setresuid(ruid 4294967295, euid 1000, suid 4294967295) = 0 567 setsockopt(4, SOL_SOCKET, SO_LINGER, [1], 8) = 0 567 brk(0x806b000) = 0x806b000 567 brk(0x806d000) = 0x806d000 567 open("/etc/ssh/ssh_host_key", O_RDONLY) = -1 EACCES (Permission denied) 567 setuid(1000) = 0 567 stat("/home/nfs/acolomb/.ssh", {st...
2006 Mar 17
1
Fatal trap 12: page fault while in kernel mode / current process=12 (swi1: net)
this is 6.0-STABLE as for Mar 17. KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-PRERELEASE #2: Fri Mar 17 11:05:32 UTC 2006 vlad@host:/usr/src/sys/amd64/compile/DEF_WEB Timecounter
2002 Jul 16
9
my printers are still paused in Win2k and WinNT 4.0
Hello, It seems that I am in printer hell once again :) I am trying to sort out some printer problems with our UNIX server. The basic problem is this. I have a test server to K.I.S.S the problem. On this server I have defined two queues which are csqlis and HPfinley. csqlis seems to work correctly and displays ready. HPfinley always reads Paused on win2k and NT40 clients. The output of the lpq
2016 Jul 28
6
[RFC v6 0/6] Add virtio transport for AF_VSOCK
This series is based on v4.7. This RFC is the implementation for the new VIRTIO Socket device. It is developed in parallel with the VIRTIO device specification and proves the design. Once the specification has been accepted I will send a non-RFC version of this patch series. v6: * Add VHOST_VSOCK_SET_RUNNING ioctl to start/stop vhost cleanly * Add graceful shutdown to avoid port reuse while
2016 Jul 28
6
[RFC v6 0/6] Add virtio transport for AF_VSOCK
This series is based on v4.7. This RFC is the implementation for the new VIRTIO Socket device. It is developed in parallel with the VIRTIO device specification and proves the design. Once the specification has been accepted I will send a non-RFC version of this patch series. v6: * Add VHOST_VSOCK_SET_RUNNING ioctl to start/stop vhost cleanly * Add graceful shutdown to avoid port reuse while