<?xml version="1.0" encoding="windows-1252"?>
<node id="73705" title="How can I make a client realize the server connection is gone?" created="2001-04-19 00:18:27" updated="2005-08-15 08:38:31">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
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?
&lt;p&gt;
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.
</field>
<field name="parent_node">
1842</field>
</data>
</node>
