Subject: bin/10390: rate limiting in ftpd aborts transfer early at low speeds
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dogcow@redback.com>
List: netbsd-bugs
Date: 06/18/2000 17:14:15
>Number:         10390
>Category:       bin
>Synopsis:       rate limiting in ftpd aborts transfer early at low speeds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 18 17:15:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        <NetBSD-current source date> 15 Jun 2000
>Organization:
Redback Networks
	
>Environment:
	
System: NetBSD gozer 1.4ZD NetBSD 1.4ZD (GOZER) #1: Thu Jun 15 16:24:42 PDT 2000 notroot@gozer:/build/src/sys/arch/i386/compile/GOZER i386


>Description:
It appears that if you do a 'rateget class 42k' in ftpd.conf and the
connecting hosts's bandwidth is below that of the limit, the server will
only transfer the first 42k of a file, and then consider the file fully
transferred.
	
>How-To-Repeat:
in /etc/ftpd.conf:

rateget p5guest 80k
rateput p5guest 80k

and download over a sufficiently slow link (i.e. idsl or modem).

The log in xferlog is
Jun 18 17:06:11 babymeat ftpd[612]: Data traffic: 81920 bytes in 1 file

	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: