Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Wilfried Mestdagh
, 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) { httpServerClient-affinityThread-messagePump

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Fastream Technologies
: 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) { httpServerClient-affinityThread-messagePump

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

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Wilfried Mestdagh
] To: ICS support mailing twsocket@elists.org 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 your thread's execute method. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Fastream Technologies
: [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 procedures I will need but I forgot to put

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
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 limited on

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
] To: ICS support mailing twsocket@elists.org 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 period), I know this will cause CPU problem. And bandwidth

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Dan
PROTECTED] To: ICS support mailing twsocket@elists.org 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 want to throttle bandwidth of my reverse

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
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 PROTECTED] http://www.overbyte.be

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
; } //--- Isn't this the right code? Regards, SZ - Original Message - From: Dan [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, January 29, 2006 4:53 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer I seem to recall a similar thing happening

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 twsocket@elists.org Sent: Sunday, January 29, 2006 6:45 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
loop which is good. Regards, SZ - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, January 29, 2006 6:59 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer Hello Fastream, FCtrlSocket

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
@elists.org Sent: Sunday, January 29, 2006 6:59 PM Subject: Re: [twsocket] THttpConnection throttling problem with timer Hello Fastream, FCtrlSocket-OnMessagePump = MessagePump; This was in fact the answer to my question. But what do you have written in MessagePump

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
@elists.org 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) { httpServerClient-affinityThread