2010-02-23 22:38:56 |
Jon Tai |
description |
Even after the fix for bug 526609, we're still seeing these in the error trap, although they don't cause the interface to shut down. My *guess* is that $DEVICE is set when the connection is fully closed (handled in bug 526609), but this EOF error occurs when we try to READ after the sending stream is closed, i.e., the TCP connection is half-closed.
We should check $ZEOF just like we check $DEVICE -- if $ZEOF is set, and we're not in the middle of a message, close the connection gracefully and go back to listening. |
Even after the fix for bug 526609, we're still seeing these in the error trap, although they don't cause the interface to shut down. My *guess* is that $DEVICE is set when the connection is fully closed (handled in bug 526609), but this EOF error occurs when we try to READ after the inbound stream is closed, i.e., the TCP connection is half-closed.
We should check $ZEOF just like we check $DEVICE -- if $ZEOF is set, and we're not in the middle of a message, close the connection gracefully and go back to listening.
|
|