From owner-freebsd-net Thu Jul 18 16:37:27 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC4B037B400 for ; Thu, 18 Jul 2002 16:37:25 -0700 (PDT) Received: from prism.flugsvamp.com (66-191-112-47.mad.wi.charter.com [66.191.112.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F45C43E31 for ; Thu, 18 Jul 2002 16:37:25 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.6/8.11.6) id g6INb8n97317; Thu, 18 Jul 2002 18:37:08 -0500 (CDT) (envelope-from jlemon) Date: Thu, 18 Jul 2002 18:37:08 -0500 (CDT) From: Jonathan Lemon Message-Id: <200207182337.g6INb8n97317@prism.flugsvamp.com> To: benjamin@dzhan.com, net@freebsd.org Subject: Re: tcp SYN retries? X-Newsgroups: local.mail.freebsd-net In-Reply-To: Organization: Cc: Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In article you write: > >When I attempt to make a sock_stream connection to an IP, and DON'T >receive an ACK or RST response, it seems that the system retries a finite >number of times by sending additional SYN packets. There also looks to be >a 3 or 6 second delay between SYN retries. After four or five, the >connection fails. > >Is there a way I can change the interval time for SYN retries, or decrease >the number of times it retries? I would imagine this would be dependent >on the particular tcp/ip stack implementation of my OS. I'm using FreeBSD >and would imaging some kernel sysctl variable would control this... Any >ideas? Or perhaps it's a socket option? You don't mention what version of FreeBSD you're using. The latest versions have a only a 1 sec interval between retries for the first couple of attempts. An overall timeout would be best implemented at the application layer. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message