Perl Socket Problem!!!
Posted on 2000-02-17
I have made a socket connection to another application A by using the Perl scripts.
After setting up the connection, I will first send data to application A.
Application A will process the data and return the result. But the time needed is variable.
I found the following problem in this suitation:
My perl script will be rut at WIN95 which has insallted Microsoft PWS and Activer Perl.
User opens the web-browser to run my Perl scripts. If the user press the stop button at the browser before the result return from Application A , I found the process of Perl is still running (ie. the socket connection hadn't been closed).
By pressing ALT+CTL+DELETE, I found the task Perl is still here.
I hope I can remove this task because I have limited the socket connection to application A not more than 3. If 3 users had pressed the stop button at the browser before closing the socket, the 4th users cannot make a connection anymore.
Can I do this?
Thank you very much