summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-02-18 11:42:55 -0800
committerDavid Schleef <ds@schleef.org>2010-02-18 11:44:59 -0800
commit8cf4f488929a61912f4f73807929c22f49b27b5f (patch)
tree3195041f97a03837ed79e78f5afd2c7dd0a501ac
parenta8f51d61f7e55d48b38b481ec0d50206b06e896e (diff)
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
-rw-r--r--gst/tcp/gsttcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/tcp/gsttcp.c b/gst/tcp/gsttcp.c
index 9bf2666d7..5e8aae7c4 100644
--- a/gst/tcp/gsttcp.c
+++ b/gst/tcp/gsttcp.c
@@ -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:
{