Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
It's a great news for me ! Bandwidth throttling is now implemented in the HTTP Client and Server Just be aware the absolute bandwidth speeds may be 20% different from my various testing. I was testing at 1 and 5 megs, and got 0.8 and 4.7 meg speeds, but still much better than the 50 to 100

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Fastream Technologies
In our tests, I have witnessed that making throttling code 99+% precise in async sockets is very difficult (or impossible). It needs a Sleep() call to do that which in turn requires a thread per socket. Regards, SZ On Mon, Feb 7, 2011 at 11:55 AM, Angus Robertson - Magenta Systems Ltd

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Bruno Mannina
Is the Zip file is available on the website ? I can't find it, it always shows *[* Download ICS-V7 Distribution (October, 2010) *]* Regards, Bruno Le 07/02/2011 11:17, Fastream Technologies a écrit : In our tests, I have witnessed that making throttling code 99+% precise in async sockets is

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
Is the Zip file is available on the website ? I can't find it, it always shows *[* Download ICS-V7 Distribution (October, 2010) *]* It's on the Wiki website: http://wiki.overbyte.be/wiki/index.php/ICS_Download SVN is zipped at about 11.05pm each night as:

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Bruno Mannina
Ok thanks, I can't find because I'm looking for on http://www.overbyte.be Regards, Bruno Le 07/02/2011 12:27, Angus Robertson - Magenta Systems Ltd a écrit : Is the Zip file is available on the website ? I can't find it, it always shows *[* Download ICS-V7 Distribution (October, 2010) *]*

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
I can't find because I'm looking for on http://www.overbyte.be The same zip links are on the main ICS product page, a few rows above the red text version, but slightly less obvious. Beware the SVN repository can be updated daily, and rarely some bad code ends up there for a couple of days,

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Bruno Mannina
Great ! It works perfectly for me inside my program thanks a lot for this improvement ! Regards, Bruno Le 04/02/2011 20:07, Angus Robertson - Magenta Systems Ltd a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. I use POST requests, so

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-06 Thread Bruno Mannina
Dear Angus, It's a great news for me ! Thanks a lot, Bruno Le 04/02/2011 20:07, Angus Robertson - Magenta Systems Ltd a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. I use POST requests, so it's sad for me. Bandwidth throttling is now

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-04 Thread Angus Robertson - Magenta Systems Ltd
The bandwidth control is not very accurate and currently doesn't work with POST requests. I use POST requests, so it's sad for me. Bandwidth throttling is now implemented in the HTTP Client and Server using BUILTIN_THROTTLE, and works for both POST and GET requests. Four demo HTTP projects

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Bruno Mannina
Dear Anton, Thank you for your message, Unfortunately my programmation level is not engouh good to understand your explanation and therefore I am unable to make any modifications you to tell me, I do not even know what file I need to change :'( Could you guide me to do the modification please

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Angus Robertson - Magenta Systems Ltd
Unfortunately my programmation level is not engouh good to understand your explanation and therefore I am unable to make any modifications you to tell me, I do not even know what file I need to change :'( Anton was not referring to the HTTP client, but the FTP client. He was asking for some

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Anton S.
2Bruno: Could you guide me to do the modification please ? and where ? it would be really nice from you. Well, I'm not an expert in ICS and have little knowledge of HttpCli but here's dummy vision of the issue. Search inside OverbyteIcsFtpCli.pas for BUILTIN_THROTTLE and copy-paste all the stuff

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Bruno Mannina
Dear Anton, Thanks a lot for these information, I will do the tests and modification tonight at home. I will keep inform if I success to do it. Thx a lot ! Bruno Le 27/01/2011 13:28, Anton S. a écrit : 2Bruno: Could you guide me to do the modification please ? and where ? it would be

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Angus Robertson - Magenta Systems Ltd
As long as obsoleteness is concerned, I have no info on future plans of this feature but the ICS NOT BREAK EXISTING CODE commandment hints that UseBandwidthControl would probably remain. The old bandwith control code is unused, indeed not compiled, so removing it does not break existing

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Anton S.
2Angus The old bandwith control code is unused, indeed not compiled, so removing it does not break existing applications. But there is no point in rewriting it which is what you were suggesting. I don't think so. OverbyteIcsDefs.inc has BUILTIN_TIMEOUT BUILTIN_THROTTLE defines commented by

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Angus Robertson - Magenta Systems Ltd
I don't think so. OverbyteIcsDefs.inc has BUILTIN_TIMEOUT BUILTIN_THROTTLE defines commented by default so old code is still in use. Only until I finish testing and remove the old stuff. Moreover, as these features require an additional thread Only one thread to run TIcsThreadTimer,

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Arno Garrels
Anton S. wrote: 2Angus The old bandwith control code is unused, indeed not compiled, so removing it does not break existing applications. But there is no point in rewriting it which is what you were suggesting. I don't think so. OverbyteIcsDefs.inc has BUILTIN_TIMEOUT BUILTIN_THROTTLE

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-27 Thread Anton S.
Angus, Arno, thanks for info about threads in ICS! I'll probably take a look at built-in timeouts and use them instead of my own ones which I implemented by TIcsTimer. -- Anton -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-26 Thread Bruno Mannina
Dear Arno, Is it possible to have a date when you think that the bandwidth control will be available for POST method in HttpCli component ? I need this option, and my boss asks me if I can have a date when this option will be available. Many thanks for your help, Sincerely, Bruno Le

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-26 Thread Arno Garrels
Bruno Mannina wrote: Dear Arno, Is it possible to have a date when you think that the bandwidth control will be available for POST method in HttpCli component ? Currently I cannot give you a date, I'm still rather busy. I do not need this feature in my own projects, so any work on that was

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-26 Thread Anton S.
Arno, in FtpCli unit there's quite large piece of code {$IFDEF UseBandwidthControl} FBandwidthCount := 0; // Reset byte counter if ftpBandwidthControl in FOptions then begin if not Assigned(FBandwidthTimer) then FBandwidthTimer :=

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-08 Thread Arno Garrels
Bruno Mannina wrote: Dear Members, Can someone help me to understand how can I use the property BandWidthLimit ? 1) Property BandwidthLimit specifies the maximum number of bytes per second. 2) Property BandwidthSampling specifies a sampling interval in milliseconds, default 1000. 3)

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-08 Thread Bruno Mannina
Le 08/01/2011 10:17, Arno Garrels a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. Dear Arno, thanks for these informations, I use POST requests, so it's sad for me. Thx -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-08 Thread Arno Garrels
Bruno Mannina wrote: Le 08/01/2011 10:17, Arno Garrels a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. Dear Arno, thanks for these informations, I use POST requests, so it's sad for me. In current ICSv7 there's a native throttle

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-01-08 Thread Bruno Mannina
Le 08/01/2011 18:43, Arno Garrels a écrit : Bruno Mannina wrote: Le 08/01/2011 10:17, Arno Garrels a écrit : The bandwidth control is not very accurate and currently doesn't work with POST requests. Dear Arno, thanks for these informations, I use POST requests, so it's sad for me. In

[twsocket] HttpCli, bandWidthLimit ?

2011-01-07 Thread Bruno Mannina
Dear Members, Can someone help me to understand how can I use the property BandWidthLimit ? Thanks a lot, Bruno -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be