I implemented a custom user class and set the upload and download rates for the class. Then in the ftplet, when the required number of files were uploaded say 10, on the 11th file i changed the upload rate in order to throttle the upload for that particular user. This change is put in the list of Authorities assigned to the user but this change is not reflected in the FTPsession in use. The file gets uploaded with the initial upload rate. Is it because of the check of authorites for that particular user are only done during the authorization and not during the session?
On Wed, Apr 13, 2011 at 2:15 PM, Sachin Shetty <[email protected]> wrote: > Thanks a lot, I guess we will take a look at that and update the list on > our findings. Thanks once again! > > Thanks > Sachin > > -----Original Message----- > From: Niklas Gustavsson [mailto:[email protected]] > Sent: Wednesday, April 13, 2011 1:47 PM > To: [email protected] > Subject: Re: Custom Bandwidth Throttling > > On Wed, Apr 13, 2011 at 10:13 AM, Sachin Shetty <[email protected]> > wrote: > > How about throttling on the fly based on some events, for e.g. a user has > > already uploaded ten files in the current ftp session and we want to slow > > him down on the 11th file onwards? Can we get that work in Apache ftp > > server. > > This is not supported out of the box, but you can use the APi and > implement your own User class to handle this case. > > /niklas > > -- Regards, Nitish S. Bangera
