Re: [twsocket] Bandwidth control TFtpClient

2006-01-18 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote:
 I dont think the control channel of FTP needs throttling, only data
 channel.
 
 Who would possible want to throttle even the data channel on a FTP client?

For instance someone who wants to be able to trottle down CPU load on very fast
connections. What is happening if the line is too fast can be seen when you run
both server and client on localhost, it becomes a pain to work on that system.

 
 Just seems unnecessary complications to me.

It's just an option, conditional compiled. 

 
 I thought throttling was something servers did when they are hosted on
 lines incapable of meeting proper bandwidth for all users.
 
 Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-18 Thread Robert Chafer
One reason would be that the client does not want to soak up all the
bandwidth. For example, I routinely run an RDP session over my
Internet connection. It would be nice to also do some low-level
downloading with FTP -- generally I cannot because the FTP client gets
data at the limit of my bandwidth and the RDP becomes very sluggish.
If I could throttle the FTP to 25% it would make it much nicer to use.

On Tue, 17 Jan 2006 21:51:03 +0100, you wrote:

  Hello Angus,
  
  My opinion too, but it seems a popular item :) If I write an application
  my concern is to get as muth data in short possible time. But others
  seems to like to delay it :)  I dont know the reason...
  
  ---
  Rgds, Wilfried [TeamICS]
  http://www.overbyte.be/eng/overbyte/teamics.html
  http://www.mestdagh.biz
  
  Tuesday, January 17, 2006, 21:39, Angus Robertson - Magenta Systems Ltd 
 wrote:
  
   I dont think the control channel of FTP needs throttling, only data
   channel. 
  
   Who would possible want to throttle even the data channel on a FTP client?
  
   Just seems unnecessary complications to me. 
  
   I thought throttling was something servers did when they are hosted on
   lines incapable of meeting proper bandwidth for all users.  
  
   Angus
--

Rob Chafer
Silverfrost
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-18 Thread Peter Feldbaumer
 Original Message 
From: Arno Garrels [EMAIL PROTECTED]

 I've just more or less copied and pasted the bandwidth control stuff
 from HttpProt.pas to FtpProt.pas, enabled it on the data channel only
 so far. I couldn't find a note who contributed this code?
 Also, should I enable it on the control channel as well??

Could I suggest to create a descendent component from TFtpSrv - something 
like TFtpSrvThrottled - to implement bandwidth-limiting?

The current implementation (if it is like in HttpProt.pas) doesn't fit my 
needs (and probably that of others, too) - e.g. if one needs to implement 
overall or single-connection throttling.

If all is packed into the base component then there is no way around 
duplicate code in the compiled exe - however if it is in a derived component 
then one can simply select to choose TFtpSrvThrottled or TFtpSrv.

Moreover I think it would definitely help to improve code-readability if 
not everything is packed into the base component.

For FTPSrv I could offer an implementation based on Dan's ThrottledWSocket 
(see http://www.xantorrent.pwp.blueyonder.co.uk/ics/ThrottledWSocket.zip) 
which doesn't touch anything in the base FtpSrv.pas - and therefore is 
completely based on inheritance (I really like it that way and could leave 
the throttling-code untouched since 2003, although I updated ics more than 
once in this timespan ;)
Code can be found at http://www.feldtech.com/downloads/uThrottledFTP.pas 
(taken directly out of a project - so no examples...) - please note that I 
didn't check if my extensions are compatible with ics-ssl (I fear not, 
since I'm hijacking DoRecv(), which is used in ssl-implementation too).

ps: I think creating a descendent component for HttpSrv would also be a good 
idea...
--
Peter Feldbaumer
p dot feldbaumer at utanet dot at


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-18 Thread Arno Garrels
Peter Feldbaumer wrote:

 Could I suggest to create a descendent component from TFtpSrv - something
 like TFtpSrvThrottled - to implement bandwidth-limiting?
 
 The current implementation (if it is like in HttpProt.pas) doesn't fit my
 needs (and probably that of others, too) - e.g. if one needs to implement
 overall or single-connection throttling.

Current implementation is in the FTP/HTTP _clients_ only, conditional compiled.
It probably won't fit my needs in real world applications as well. A derived
throttled server would be nice, however nicer would be a throttle-component
that plays with all ICS components (drop and forget), just my to cents.  

[..]

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-18 Thread Peter Feldbaumer
 Original Message 
From: Arno Garrels [EMAIL PROTECTED]

 Current implementation is in the FTP/HTTP _clients_ only, conditional
 compiled. It probably won't fit my needs in real world applications as 
 well.
 A derived throttled server would be nice, however nicer would be a
 throttle-component that plays with all ICS components (drop and forget), 
 just
 my to cents.

ups... I have mis-read your first posting  - I thought you were talking 
about FtpSrv...

nevertheless, the posted code implements this derived throttled server...
--
Peter Feldbaumer
p dot feldbaumer at utanet dot at

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-18 Thread Dan
I think theres already one in my zip, but Im not 100% sure.

Dan

- Original Message - 
From: Peter Feldbaumer [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, January 18, 2006 3:30 PM
Subject: Re: [twsocket] Bandwidth control TFtpClient


  Original Message 
 From: Arno Garrels [EMAIL PROTECTED]

 I've just more or less copied and pasted the bandwidth control stuff
 from HttpProt.pas to FtpProt.pas, enabled it on the data channel only
 so far. I couldn't find a note who contributed this code?
 Also, should I enable it on the control channel as well??

 Could I suggest to create a descendent component from TFtpSrv - something
 like TFtpSrvThrottled - to implement bandwidth-limiting?

 The current implementation (if it is like in HttpProt.pas) doesn't fit my
 needs (and probably that of others, too) - e.g. if one needs to implement
 overall or single-connection throttling.

 If all is packed into the base component then there is no way around
 duplicate code in the compiled exe - however if it is in a derived 
 component
 then one can simply select to choose TFtpSrvThrottled or TFtpSrv.

 Moreover I think it would definitely help to improve code-readability if
 not everything is packed into the base component.

 For FTPSrv I could offer an implementation based on Dan's ThrottledWSocket
 (see http://www.xantorrent.pwp.blueyonder.co.uk/ics/ThrottledWSocket.zip)
 which doesn't touch anything in the base FtpSrv.pas - and therefore is
 completely based on inheritance (I really like it that way and could leave
 the throttling-code untouched since 2003, although I updated ics more than
 once in this timespan ;)
 Code can be found at http://www.feldtech.com/downloads/uThrottledFTP.pas
 (taken directly out of a project - so no examples...) - please note that I
 didn't check if my extensions are compatible with ics-ssl (I fear not,
 since I'm hijacking DoRecv(), which is used in ssl-implementation too).

 ps: I think creating a descendent component for HttpSrv would also be a 
 good
 idea...
 --
 Peter Feldbaumer
 p dot feldbaumer at utanet dot at


 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Arno Garrels
Hi,

I've just more or less copied and pasted the bandwidth control stuff
from HttpProt.pas to FtpProt.pas, enabled it on the data channel only 
so far. I couldn't find a note who contributed this code?
Also, should I enable it on the control channel as well??

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Wilfried Mestdagh
Hello Angus,

My opinion too, but it seems a popular item :) If I write an application
my concern is to get as muth data in short possible time. But others
seems to like to delay it :)  I dont know the reason...

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Tuesday, January 17, 2006, 21:39, Angus Robertson - Magenta Systems Ltd wrote:

 I dont think the control channel of FTP needs throttling, only data
 channel. 

 Who would possible want to throttle even the data channel on a FTP client?

 Just seems unnecessary complications to me. 

 I thought throttling was something servers did when they are hosted on
 lines incapable of meeting proper bandwidth for all users.  

 Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Paul
Hi Wilfried,

It is sometimes necessary.
Suppose you have a server running on an 100 MB WAN-connection,
and there are clients that have 100MB upload and download lines,
your server will be blocked immediately.

Such clients (mostly corparate companies) exist ,
and even more then one would like.


Paul



- Original Message - 
From: Wilfried Mestdagh [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, January 17, 2006 9:51 PM
Subject: Re: [twsocket] Bandwidth control TFtpClient


 Hello Angus,

 My opinion too, but it seems a popular item :) If I write an application
 my concern is to get as muth data in short possible time. But others
 seems to like to delay it :)  I dont know the reason...

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Tuesday, January 17, 2006, 21:39, Angus Robertson - Magenta Systems Ltd 
 wrote:

 I dont think the control channel of FTP needs throttling, only data
 channel.

 Who would possible want to throttle even the data channel on a FTP 
 client?

 Just seems unnecessary complications to me.

 I thought throttling was something servers did when they are hosted on
 lines incapable of meeting proper bandwidth for all users.

 Angus

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Wilfried Mestdagh
Hello Paul,

   Yes understeand. I only never had that situation or ask. I probably
   have the kind of customars with different view.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Tuesday, January 17, 2006, 21:58, Paul wrote:

 Hi Wilfried,

 It is sometimes necessary.
 Suppose you have a server running on an 100 MB WAN-connection,
 and there are clients that have 100MB upload and download lines,
 your server will be blocked immediately.

 Such clients (mostly corparate companies) exist ,
 and even more then one would like.


 Paul



 - Original Message - 
 From: Wilfried Mestdagh [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Tuesday, January 17, 2006 9:51 PM
 Subject: Re: [twsocket] Bandwidth control TFtpClient


 Hello Angus,

 My opinion too, but it seems a popular item :) If I write an application
 my concern is to get as muth data in short possible time. But others
 seems to like to delay it :)  I dont know the reason...

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Tuesday, January 17, 2006, 21:39, Angus Robertson - Magenta Systems Ltd
 wrote:

 I dont think the control channel of FTP needs throttling, only data
 channel.

 Who would possible want to throttle even the data channel on a FTP 
 client?

 Just seems unnecessary complications to me.

 I thought throttling was something servers did when they are hosted on
 lines incapable of meeting proper bandwidth for all users.

 Angus

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Paul
I only discovered it recently myself,

A few of our customurs are able to download a 10Mb file in just a second !
And worse: these customurs are increasing day by day


Paul


- Original Message - 
From: Wilfried Mestdagh [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, January 17, 2006 10:16 PM
Subject: Re: [twsocket] Bandwidth control TFtpClient


 Hello Paul,

   Yes understeand. I only never had that situation or ask. I probably
   have the kind of customars with different view.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Tuesday, January 17, 2006, 21:58, Paul wrote:

 Hi Wilfried,

 It is sometimes necessary.
 Suppose you have a server running on an 100 MB WAN-connection,
 and there are clients that have 100MB upload and download lines,
 your server will be blocked immediately.

 Such clients (mostly corparate companies) exist ,
 and even more then one would like.


 Paul



 - Original Message - 
 From: Wilfried Mestdagh [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Tuesday, January 17, 2006 9:51 PM
 Subject: Re: [twsocket] Bandwidth control TFtpClient


 Hello Angus,

 My opinion too, but it seems a popular item :) If I write an application
 my concern is to get as muth data in short possible time. But others
 seems to like to delay it :)  I dont know the reason...

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Tuesday, January 17, 2006, 21:39, Angus Robertson - Magenta Systems Ltd
 wrote:

 I dont think the control channel of FTP needs throttling, only data
 channel.

 Who would possible want to throttle even the data channel on a FTP
 client?

 Just seems unnecessary complications to me.

 I thought throttling was something servers did when they are hosted on
 lines incapable of meeting proper bandwidth for all users.

 Angus

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be




 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Francois PIETTE
 I've just more or less copied and pasted the bandwidth control stuff
 from HttpProt.pas to FtpProt.pas, enabled it on the data channel only
 so far. I couldn't find a note who contributed this code?

Well, it's me ! Actually I have done it for a customer who payed for and 
agreed to give it to the community. So the code is mine but the gift is from 
my customer.

 Also, should I enable it on the control channel as well??

It could, but probably useless since bandwidth on control channel is 
normally not used much.

--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Angus Robertson - Magenta Systems Ltd
 Suppose you have a server running on an 100 MB WAN-connection,
 and there are clients that have 100MB upload and download lines,
 your server will be blocked immediately.

But we were not talking about servers, only clients. 

Angus

via a 10 Mbit cable modem g

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be