[gst-devel] socket_error_is_ignorable can cause infinite loop in gstmultiudpsink.c if RTSP client connection is lost and EOS is sent to pipeline for gst-rtsp-server
Robert Krakora
rob.krakora at messagenetsystems.com
Thu Jul 29 16:49:28 CEST 2010
socket_error_is_ignorable can cause infinite loop in gstmultiudpsink.c
if RTSP client connection is lost and EOS is sent to pipeline for
gst-rtsp-server. The remedy is to add ECONNREFUSED to the
conditional.
static gboolean
socket_error_is_ignorable (void)
{
#ifdef G_OS_WIN32
/* Windows doesn't seem to have an EAGAIN for sockets */
return WSAGetLastError () == WSAEINTR || WSAGetLastError() == WSAECONNREFUSED;
#else
return errno == EINTR || errno == EAGAIN || errno == ECONNREFUSED;
#endif
}
--
Rob Krakora
Senior Software Engineer
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext. 206
(317)663-0808 Fax
More information about the gstreamer-devel
mailing list