Date: Thu, 29 Apr 2010 21:55:20 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd proto_tcp4.c Message-ID: <201004292155.o3TLtgQq081649@repoman.freebsd.org>
index | next in thread | raw e-mail
pjd 2010-04-29 21:55:20 UTC
FreeBSD src repository
Modified files:
sbin/hastd proto_tcp4.c
Log:
SVN rev 207390 on 2010-04-29 21:55:20Z by pjd
Default connection timeout is way too long. To make it shorter we have to
make socket non-blocking, connect() and if we get EINPROGRESS, we have to
wait using select(). Very complex, but I know no other way to define
connection timeout for a given socket.
Reported by: hiroshi@soupacific.com
MFC after: 3 days
Revision Changes Path
1.2 +75 -3 src/sbin/hastd/proto_tcp4.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004292155.o3TLtgQq081649>
