From owner-freebsd-bugs Tue Apr 9 23:30:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AAACF37B400 for ; Tue, 9 Apr 2002 23:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3A6U2b72944; Tue, 9 Apr 2002 23:30:02 -0700 (PDT) (envelope-from gnats) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by hub.freebsd.org (Postfix) with ESMTP id 764E437B4D4 for ; Tue, 9 Apr 2002 23:26:55 -0700 (PDT) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.11.6/8.11.6) id g3A6Qcv49878; Wed, 10 Apr 2002 14:26:38 +0800 (KRAST) (envelope-from eugen) Message-Id: <200204100626.g3A6Qcv49878@www.svzserv.kemerovo.su> Date: Wed, 10 Apr 2002 14:26:38 +0800 (KRAST) From: Eugene Grosbein Reply-To: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/36955: Stock ftpd does not reuse ports in passive mode and fails Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36955 >Category: bin >Synopsis: Stock ftpd does not reuse ports in passive mode and fails >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 09 23:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 4.5-STABLE i386 >Organization: Svyaz Service >Environment: Stock ftpd, passive mode transfers sysctl net.inet.ip.portrange.hi[first|last] range limited >Description: I have limited net.inet.ip.portrange.hi[first|last] range to several hundred (600-700) of ports. If I try to download many thousands of small files through 100Mb ethernet connection using passive mode, it starts but quickly fails with diagnostics: <--- 425 Can't open passive connection: Can't assign requested address. I guess it's because it does not reuse ports of dedicated range. So one client can exhaust ports and passive mode transfers will be blocked for some time. There is no such problem with active mode but it's not suitable for some configurations. >How-To-Repeat: See above. >Fix: Perhaps, use SO_REUSEPORT option? >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message