Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
Hello Wilfried, I am using noforms and multithreaded and for some reason the messagepump is never called! Can we assume this as normal since I am using async methods only? Regards, SZ - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Se

Re: [twsocket] Need help with RFC2617 and IE bug

2006-01-29 Thread Maurizio Lotauro
Scrive Fastream Technologies <[EMAIL PROTECTED]>: > - Original Message - > From: "Maurizio Lotauro" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Sunday, January 29, 2006 5:53 PM > Subject: Re: [twsocket] Need help with RFC2617 and IE bug [...] > > I don't follow you, it seem

Re: [twsocket] Need help with RFC2617 and IE bug

2006-01-29 Thread Maurizio Lotauro
Scrive Fastream Technologies <[EMAIL PROTECTED]>: > - Original Message - > From: "Maurizio Lotauro" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Sunday, January 29, 2006 5:53 PM > Subject: Re: [twsocket] Need help with RFC2617 and IE bug > > > > Scrive Fastream Technologies

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
Hello Fastream, OK, I was just brainstorming of course :) Yes GetMessage is OK. Can you not pauze the IDE to see where it is looping ? 100% CPU could be a loop somewhere. You probably comes into a CPU window, but stepping trough it you should come back on some C or Delphi code. --- Rgds, Wilfrie

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
Hello Wilfried, I do not think that's the problem. The code is: void __fastcall httpClient::MessagePump(TObject *Sender) { httpServerClient->affinityThread->messagePump(); } //--- and it calls a GetMessage() based lo

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] Difference between V5d and V5e

2006-01-29 Thread Francois PIETTE
> What are the differences between those versions concerning HttpCl i ? Wrong mailing list. Answered in ICS-SSL mailing list. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocke

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 with timer > Hello Fastream, >

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
I use this approach: __fastcall httpClient::httpClient(TComponent *AOwner) : THttpCli(AOwner) { ... FCtrlSocket->OnMessagePump = MessagePump; FCtrlSocket->ComponentOptions << wsoNoReceiveLoop; } //---

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
Hello Fastream, > pump data to client connection How do you pump ? Maybe that's the reason of 100% CPU ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, January 29, 2006, 16:37, Fastream Technologies wrote: > I stopped the timer and

Re: [twsocket] Need help with RFC2617 and IE bug

2006-01-29 Thread Fastream Technologies
- Original Message - From: "Maurizio Lotauro" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 5:53 PM Subject: Re: [twsocket] Need help with RFC2617 and IE bug > Scrive Fastream Technologies <[EMAIL PROTECTED]>: > >> - Original Message - >> From: "M

Re: [twsocket] Need help with RFC2617 and IE bug

2006-01-29 Thread Maurizio Lotauro
Scrive Fastream Technologies <[EMAIL PROTECTED]>: > - Original Message - > From: "Maurizio Lotauro" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Sunday, January 29, 2006 2:06 AM > Subject: Re: [twsocket] Need help with RFC2617 and IE bug > > > > Scrive Fastream Technologies

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
I stopped the timer and it still uses 100%CPU!!! I wonder if this is a leftover bug from old betas. The algorithm is this: Create a THttpCli in THttpConnection context. Then make them both multithreaded and in the same worker thread. In ondocdata of httpclient, pump data to client connection. C

[twsocket] Difference between V5d and V5e

2006-01-29 Thread Paul
What are the differences between those versions concerning HttpCl i ? Paul -- 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] THttpConnection throttling problem with timer

2006-01-29 Thread Francois PIETTE
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 - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support ma

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Dan
I seem to recall a similar thing happening for my throttledwsocket. I think I fixed it by setting the option NoReceiveLoop (not sure of the name, but you know what I mean). Maybe your problem is related, worth a try. Dan - Original Message - From: "Fastream Technologies" <[EMAIL PROT

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
Hello, Perhaps we should think at the algorithm level. Here it is for your eyes only: ;) I want to throttle bandwidth of my reverse proxy which uses THttpConnection and inside it an associated THttpCli. Bandwidth and consumed bandwidth is per domain and protected by critical sections. There i

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
> did you look at my code below? 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

Re: [twsocket] Need help with RFC2617 and IE bug

2006-01-29 Thread Fastream Technologies
- Original Message - From: "Maurizio Lotauro" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 2:06 AM Subject: Re: [twsocket] Need help with RFC2617 and IE bug > Scrive Fastream Technologies <[EMAIL PROTECTED]>: > >> At the moment there is a problem with Jav

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Fastream Technologies
But it does not work that way! Maybe my logic is a bit different, did you look at my code below? Regards, SZ - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 29, 2006 10:50 AM Subject: Re: [twsocket] THttpConnection throt

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