Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : Re: CPU at 100% causing ClientSocket disconnect
| Subject: | Re: CPU at 100% causing ClientSocket disconnect |
| Posted by: | "Angela Bodnar" (angelabodn..@yahoo.com) |
| Date: | 18 Jan 2007 07:31:51 |
Thought I would try again since I haven't gotten any responses.
My program is going into the ClientSocket1.OnDisconnect event.
The host says that they are not disconnecting. What could
possibly cause this event to trigger? The program will
reconnect and continue without problem most of the time.
This happens several times a day.
Once every few days it will just lock and have to be restarted.
I believe this is where it runs into the CPU at 100%.
Ideas?
"Angela Bodnar" <angela.bodnar@noris.org> wrote:
>
>I am using Delphi 6 with BDE.
>I have an application that sends data back and forth over a
>non-blocking ClientSocket. Several times a day my application
>detects a socket disconnect. The host site says they are not
>seeing a disconnect. If the application is stopped and
>restarted it continues working correctly. We have noticed
>recently that the CPU usage is at 100% right before it detects a
>disconnect. The memory usage is always low, a flat line.
>This application has been running for years. We started
>noticing this when the host site upgraded their switches. The
>only difference they can see is that messages are being routed
>more quickly. There is not much inactivity and we have a keep
>alive every minute. I have multiple SQL queries that run every
>.10 seconds as well as many other queries, inserts and updates.
>Any ideas what could cause this? Is there something I can put
>in my program to releave the CPU utilization?
>Thanks for you assistance.