, 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
: 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
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
]
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
: [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
- 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
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
]
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
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
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
;
}
//---
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
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
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.
---
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
@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
@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
16 matches
Mail list logo