Displaying 6 results from an estimated 6 matches for "l_onoff".
2002 Sep 06
0
use of setsockopt(SO_LINGER)
...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", strerror(errno));
+
debug("Local forwarding listening...
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
2006 Dec 08
1
linux sockets on centos (slightly off topic)
...tar.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(), or EPIPE from
write().
I should also point out that when write() returns EPIPE, it also raises
the SIGPIPE signal - you never see the EPIPE error unless you handle or
ignore the signal.
If the peer rema...
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
2007 Sep 14
1
[Bug 1288] ssh-add on Cygwin -- can't access ssh-agent socket
...F_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, type=SOC...
2010 Mar 13
1
klibc build trouble
as the next klibc release 1.5.16 looks like shaping up,
I have a trouble to build that for Debian.
currently I build depent on linux-libc-dev, I don't know what
against I can build latest klibc, see
klibc fails to build due too:
make -C linux/ ARCH=x86_64 INSTALL_HDR_PATH=debian/tmp/usr/lib/klibc/ headers_install
make[3]: *** No rule to make target `headers_install'. Stop.
make[2]: ***