tcp(client/server)src: Fix handling of closed sockets

The peer closing the socket should cause an EOS, instead of
silently doing nothing.  This changes the behavior to be
more like fdsrc.  Fixes: #610386
This commit is contained in:
David Schleef 2010-02-18 11:42:55 -08:00
parent a8f51d61f7
commit 8cf4f48892

View file

@ -284,7 +284,7 @@ ioctl_error:
got_eos:
{
GST_DEBUG_OBJECT (this, "Got EOS on socket stream");
return GST_FLOW_WRONG_STATE;
return GST_FLOW_UNEXPECTED;
}
read_error:
{