[prev in list] [next in list] [prev in thread] [next in thread] 

List:       twsocket
Subject:    Re: [twsocket] THttpConnection throttling problem with timer
From:       "Fastream Technologies" <gates () fastream ! com>
Date:       2006-01-30 10:33:33
Message-ID: 001301c62588$a8a0d390$0302a8c0 () Laptop
[Download RAW message or body]

Hello,

I GOT IT! It is in cleartext mode where I download packets from Httpclient 
ondocdata and pump to THttpConnection send(), the client was simply too 
fast. Now I pause the client before pumping and then resume in 
connectiondatasent!

Thanks!

SZ

----- Original Message ----- 
From: "Wilfried Mestdagh" <wilfried@mestdagh.biz>
To: "ICS support mailing" <twsocket@elists.org>
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
> called. So when it happens, set a break over there, then check via call
> stack who the caller is, and you can probably find out setting a break
> at higher level. Does that make sence ?
>
> ---
> Rgds, Wilfried [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.html
> http://www.mestdagh.biz
>
> Monday, January 30, 2006, 09:51, Fastream Technologies wrote:
>
>> That's already what I did. However it still consumes 100% CPU!!!
>
>> Regards,
>
>> SZ
>
>> ----- Original Message ----- 
>> From: "Wilfried Mestdagh" <wilfried@mestdagh.biz>
>> 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/eng/overbyte/teamics.html
>>> http://www.mestdagh.biz
>>>
>>> Monday, January 30, 2006, 08:09, Fastream Technologies wrote:
>>>
>>>> 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" <gates@fastream.com>
>>>> To: "ICS support mailing" <twsocket@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->messagePump();
>>>>> }
>>>>> //---------------------------------------------------------------------------
>>>>>
>>>>> and it calls a GetMessage() based loop which is good.
>>>>>
>>>>> Regards,
>>>>>
>>>>> SZ
>>>>>
>>>>> ----- Original Message ----- 
>>>>> From: "Wilfried Mestdagh" <wilfried@mestdagh.biz>
>>>>> 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->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.
>>>>>>
>>>>>> ---
>>>>>> Rgds, Wilfried [TeamICS]
>>>>>> http://www.overbyte.be/eng/overbyte/teamics.html
>>>>>> http://www.mestdagh.biz
>>>>>>
>>>>>> -- 
>>>>>> 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
>>>>>
>>>>> -- 
>>>>> 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
>>>
>>>
>>> -- 
>>> 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
>
>
> -- 
> 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 

-- 
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic