Hi Lukas,
> version 1: incoming data are received in main thread and are written to
> buffer of client, client has own thread to process data in buffer
> version 2: data are received in client thread (in same way as in demo
> thread application)
Possible you have a trhead problem. Possible a thre
> there are about 150 clients (in average) connected at the same
> time. sometimes program hang after 15 minutes of running, sometimes
> after several hours.
I've had ICS servers running for several months without hanging, but not
with as many clients.
Is the client an ICS application, or som
hi,
thank for reply.
there are about 150 clients (in average) connected at the same time.
sometimes program hang after 15 minutes of running, sometimes after
several hours.
I think there is no memory problem because server has a lot of memory
and when I check it using taskmanager there is a
s.org]
> Namens Lukáš Skála
> Verzonden: donderdag 18 augustus 2011 8:05
> Aan: twsocket@elists.org
> Onderwerp: Re: [twsocket] multithread server
>
> hi,
> I always call Receive (even if RcvdCount returns zero). When RcvdCount
> returns zero then Receive returns -1 value. I
hi,
I always call Receive (even if RcvdCount returns zero). When RcvdCount
returns zero then Receive returns -1 value. Is it normal?
What is property Multithreaded in TWServerSocket? Should it be set to
TRUE? In demo application property is set to FALSE and only client
sockets are set to TRUE.
Hi,
If OnDataAvailable triggers then you have to try to receive data, even if
RcvdCount (wich is unreliable) returns 0. If you don't receive then
OnDataAvailable will be called again in a closed loop en that is probably what
happens.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfort
PM
To: twsocket@elists.org
Subject: [twsocket] multithread server
hello,
I have tcp server (developed as Windows Service) based on
OverbyteIcsThrdSrv1.pas demo. There is maximum of 200 clients. Server is
hanging after some time of running - it is unable to connect any new client.
I have added log in all e
hello,
I have tcp server (developed as Windows Service) based on
OverbyteIcsThrdSrv1.pas demo. There is maximum of 200 clients. Server is
hanging after some time of running - it is unable to connect any new client.
I have added log in all events of TWSocketServer (оn events start line
and eve