Looking for any ideas as to fixing a program problem.
I have a server (as a service) which listens for socket connections 24x7. It is message logging system, connection opens and a child is forked to handle traffic, and main program goes back to listen. The child simply puts the messages into a MSSQL Table.
I have three service programs which open the connect and work all day sending messages. Then I have many short programs which kick off during the day and connect, send messages, and disconnect.
The problem I have is after a while the server stops responding to new connections. The (threads) (child) still continue to respond to the services.
This is all random, no set pattern.
Now if I bring down the service programs, the Server aborts.
Anyone have these issues? Any suggestions on how to trap the problem?
Thanks in advance.
I have a server (as a service) which listens for socket connections 24x7. It is message logging system, connection opens and a child is forked to handle traffic, and main program goes back to listen. The child simply puts the messages into a MSSQL Table.
I have three service programs which open the connect and work all day sending messages. Then I have many short programs which kick off during the day and connect, send messages, and disconnect.
The problem I have is after a while the server stops responding to new connections. The (threads) (child) still continue to respond to the services.
This is all random, no set pattern.
Now if I bring down the service programs, the Server aborts.
Anyone have these issues? Any suggestions on how to trap the problem?
Thanks in advance.