staticsea has asked for the wisdom of the Perl Monks concerning the following question:
I have a client/server application that I am working on, that both the client and the server have the capability of having a rather complicated conversation like an ftp client/server would.
The problem I have run into is that I have used a while loop on the client to listen for messages from the server, if the server daemon process dies, the client goes into an endless loop.
Is there a standard way of knowing that a socket connection has been lost on the client side?
I am using Perl 5.005_03 (on FreeBSD 4.3-RC#2), and IO-1.2, so I am not working with the latest and greatest, but I am forced to work within this framework for various reasons.
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I make a client realize the server connection is gone?
by zigster (Hermit) on Apr 19, 2001 at 12:16 UTC | |
Re: How can I make a client realize the server connection is gone?
by staticsea (Initiate) on Apr 19, 2001 at 23:20 UTC | |
Re: How can I make a client realize the server connection is gone?
by dl748 (Initiate) on Jun 02, 2001 at 02:59 UTC |
Back to
Seekers of Perl Wisdom