Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Fastream Technologies
: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, January 30, 2006 11:06 AM Subject: Re: [twsocket] THttpConnection throttling problem with timer > Hello Fastream, > > OK. You mentioned before that it was TryToSend that was continuously

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Fastream Technologies
AM Subject: Re: [twsocket] THttpConnection throttling problem with timer > Hello, > > Just a word to say I recently had that kind of 100% CPU problem in a > thread. I was starting a new project with different WSocket and as > always I "prepare" all the On events procedu

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Wilfried Mestdagh
ilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Monday, January 30, 2006 10:49 AM > Subject: Re: [twsocket] THttpConnection throttling problem with timer >> Hello Fastream, >> >> You have to call the message pump from in yo

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Dod
Hello, Just a word to say I recently had that kind of 100% CPU problem in a thread. I was starting a new project with different WSocket and as always I "prepare" all the On events procedures I will need but I forgot to put a ReceiveStr in the one of the OnDataAvailable so after receivi

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Fastream Technologies
That's already what I did. However it still consumes 100% CPU!!! Regards, SZ - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, January 30, 2006 10:49 AM Subject: Re: [twsocket] THttpConnectio

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Wilfried Mestdagh
quot;ICS support mailing" > Sent: Sunday, January 29, 2006 7:45 PM > Subject: Re: [twsocket] THttpConnection throttling problem with timer >> Hello Wilfried, >> >> I do not think that's the problem. The code is: >> >> void __fastcall ht

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
t;ICS support mailing" Sent: Sunday, January 29, 2006 7:45 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer > Hello Wilfried, > > I do not think that's the problem. The code is: > > void __fastcall httpClient::MessagePump(TObject *Sender) > { >

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
ied Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Sunday, January 29, 2006 6:59 PM > Subject: Re: [twsocket] THttpConnection throttling problem with timer >> Hello Fastream, >> >>> FCtrlSocket->OnMessagePump = Mes

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
age() based loop which is good. Regards, SZ - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 6:59 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer >

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
Hello Fastream, > FCtrlSocket->OnMessagePump = MessagePump; This was in fact the answer to my question. But what do you have written in MessagePump ? If it is the MessagePump method from TWSocket you are in an endless loop because MessagePump will call OnMessagePump if it is assigned. --

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
I use Send(FDocBuf, len); similar to SendStream()! Regards, SZ - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 6:45 PM Subject: Re: [twsocket] THttpConnection throttling problem wit

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
oReceiveLoop; } //--- Isn't this the right code? Regards, SZ - Original Message - From: "Dan" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 4:53 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer >I s

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
: "ICS support mailing" > Sent: Sunday, January 29, 2006 4:56 PM > Subject: Re: [twsocket] THttpConnection throttling problem with timer >> The problem I see is 100 mS. >> Just for fun, try with 2000 mS and evaluate the mean bandwidth on a 10 sec >> period

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
unday, January 29, 2006 4:56 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer > The problem I see is 100 mS. > Just for fun, try with 2000 mS and evaluate the mean bandwidth on a 10 sec > period. > When it works, you may lower the numbers. > -- > [EMAIL PROTE

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Francois PIETTE
To: "ICS support mailing" Sent: Sunday, January 29, 2006 1:37 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer > Hello, > > Perhaps we should think at the algorithm level. Here it is for your eyes > only: ;) > > I want to throttle bandwidth of my

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Dan
t; <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 12:37 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer > Hello, > > Perhaps we should think at the algorithm level. Here it is for your eyes > only: ;) > > I wa

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
t;[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 2:02 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer >>> Not really. Each time I see a TTimer triggered every 100 mSec (or any >>> very >>> short time

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Francois PIETTE
>> Not really. Each time I see a TTimer triggered every 100 mSec (or any >> very >> short time period), I know this will cause CPU problem. And bandwidth >> limitation defenitely doesn't require a so short period of time. What is >> useful, regarding bandwidth limitation - is to have bandwidth lim

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Arno Garrels
Paul wrote: > - Original Message - > From: "Francois PIETTE" <[EMAIL PROTECTED]> >> Not really. Each time I see a TTimer triggered every 100 mSec (or any >> very short time period), I know this will cause CPU problem. And >> bandwidth limitation defenitely doesn't require a so short period

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Paul
- Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> > Not really. Each time I see a TTimer triggered every 100 mSec (or any very > short time period), I know this will cause CPU problem. And bandwidth > limitation defenitely doesn't require a so short period of time. What is >

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Francois PIETTE
ginal Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 10:04 AM Subject: Re: [twsocket] THttpConnection throttling problem with timer > But it does not work that way! Maybe my logic is a bit different, di

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
[twsocket] THttpConnection throttling problem with timer > 100 mSec is way too short. Use 2000 mSec or more. > -- > [EMAIL PROTECTED] > http://www.overbyte.be > > - Original Message - > From: "Fastream Technologies" <[EMAIL PROTECTED]> > To: "I

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Francois PIETTE
100 mSec is way too short. Use 2000 mSec or more. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 8:41 AM Subject: [twsocket] THttpConnection throttling problem wit