tcpserversink: don't error out if clients send us something, just ignore it
authorTim-Philipp Müller <tim@centricular.com>
Sat, 4 Apr 2015 20:38:40 +0000 (21:38 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 4 Apr 2015 20:38:40 +0000 (21:38 +0100)
commit6db2ee56b6e862f54c479e553f179daf2056da74
tree801fd21db2a2971df732daec9fedb8467f607d6d
parent73278948a3469c4065d6b79478de6ac26cbd6b32
tcpserversink: don't error out if clients send us something, just ignore it

We don't expect clients to send us any data, but if they do, just
ignore it. Web browsers might send us an HTTP request for example,
but some will still be happy if we just send them data without
a proper HTTP response.

There was a bug in the reading code path. We only have a small
read buffer and would provoke an EWOULDBLOCK trying to read
because we don't bail out of the loop early enough.

https://bugzilla.gnome.org/show_bug.cgi?id=743834
gst/tcp/gstmultisocketsink.c