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

List:       twsocket
Subject:    Re: [twsocket] For those who have using twsocket for heavy traffic..
From:       Wilfried Mestdagh <wilfried () mestdagh ! biz>
Date:       2006-09-26 12:44:29
Message-ID: 262263740.20060926144429 () mestdagh ! biz
[Download RAW message or body]

Hello Samuel,

> is send, sendto, and sendstr method a "synchronized method" ?

They are not blocking if that is the question. They return immediatly
doing the request in the background.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Monday, September 25, 2006, 22:38, samuel wrote:

> i've tried ICSv6, but there is something that puzzles me.. On startup i
> created around 1000 twsocket in to be put in a pool, but when i check it
> using process explorer (freeware from www.sysinternals.com ), the user
> handle is more than 1000, and when i create only 1 twsocket, the number of
> handle is only around 30. My question is, shouldn't it be that v6 use only
> one handle ? am i missing something here ?

> also, is send, sendto, and sendstr method a "synchronized method" ?, the
> reason that i asked this is because it calls realsend, which calls something
> like wsocket_syncrhonized_send in wsocket.pas. I also noticed that
> wsocket_synchronized_* (replace * with send, connect, etc) is the second
> procedure beside getmessage that is using the most time (checked using
> aqtime4 profiler).

> thx

> On 9/24/06, Arno Garrels <arno.garrels@gmx.de> wrote:
>>
>> samuel wrote:
>> > Is there anything else that i miss, that should be noted for high
>> > performance socket apps ? Please share your experience and thoughts..
>>
>> At first you should move to V6. In V6 any TWSocket instances in
>> a thread use the same, single window. If you run TWSocketServer
>> it may also help to cache and reuse client TWSocket instances.
>> Running the  listening socket in it's own worker thread _may help
>> as well if clients frequently get 10061 due to a full listenbacklog
>> queue.
>>
>> Arno Garrels
>>
>> --
>> 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