]
http://www.overbyte.be
- Original Message -
From: "A.Shekar " <[EMAIL PROTECTED]>
To:
Sent: Saturday, September 10, 2005 7:14 AM
Subject: Re: [twsocket] WSocketServer stops listening
> Hi Wilfried,
> The normal load is 40-60%. In Server BGException i set CanCl
Hello Shekar,
>I check socket state before every PutDataInSendBuffer and Send.
> Should i use try except end around these statements ?
You should do around Send;
> Why should
> client error result in listen stopping ?
Should not. To debug you should log in OnSessionClosed of the the
server.
Hi Wilfried,
I check socket state before every PutDataInSendBuffer and Send. Should i use
try except end around these statements ? Why should client error result in
listen stopping ?
In TCustomWSocket.Connect, after SetLingerOption, the following code is
present :
optval := -1;
iStatus :
Hello Shekar,
I dont think you can. You should use exception blocks instead OnError to
have control over everything.
---
Rgds, Wilfried
http://www.mestdagh.biz
Monday, September 12, 2005, 07:24, A.Shekar wrote:
> Hi Wilfried,
>The Server.OnError or Server.OnBGException are not triggered.
Hi Wilfried,
The Server.OnError or Server.OnBGException are not triggered.
It is the Client.OnError that is triggered. Where can i get the errorcode from ?
regards
Shekar
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/t
Hello Shekar,
I suggest following for a 24/7 server:
1. in OnBGException set CanClose to True
2. in OnSessionClosed post a message to custom message handler that set
it to Listen again.
And meanwile log all and also the winsock error if any. This way your
server will stay running while it doe
Hi Wilfried,
The normal load is 40-60%. In Server BGException i set CanClose := False.
Other info i can check on monday morning.
regards
Shekar
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website
> I have a program with WSocketServer.
> This Server just stops listening for new connections.
> I do a Server.Close and Server.Listen and then new
> connections start coming in. What could be the reason?
You say it just stop. No error message, no exception ?
About exception are you sure you haven
Hello Shekar,
- The CPU time is that a normal load, or is this only after the server
has stopped listening ?
- Interesting info also is the amount / used non paged memory
- and amount / used pool
- do you have code in server's OnBGException ?
---
Rgds, Wilfried
http://www.mestdagh.biz
Friday,
Hi,
I have a program with WSocketServer. This Server just stops listening for new
connections. I do a Server.Close and Server.Listen and then new connections
start coming in. What could be the reason? Some info which might be useful to
understand the situation.
1. 300 to 800 may be connected wh
10 matches
Mail list logo