[gstreamer-bugs] [Bug 562258] rtspsrc element takes long time to error out if the address is not valid (windows)

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Nov 28 11:37:30 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=562258

  GStreamer | gst-plugins-base | Ver: HEAD CVS




------- Comment #4 from 이문형  2008-11-28 19:37 UTC -------
>> A successful gst_poll_wait() doesn't always mean successful connect()
on Windows.

This statement is also true on Linux. 


connect(s, ...)

fds[0].fd = s;
fds[0].events = POLLOUT;
r = poll(&fds, 1, ...)
if (r == 0)
  goto timeout;
if (r < 0)
  goto error;
/* r (> 0) is the number of structures which have nonzero revents fields 
 * (in other words, those descriptors with events or errors reported
 */
if (fds[0].revents & (POLLERR | POLLHUP))
  goto confailed;

send (s, "Hello", ...)


Without checking revents for errors, you can write to not-connected socket,
which leads to ECONNREFUSED error.

>> What else needs to be done before this bug can be closed?

Nothing, just remove the Windows label from the comment :)


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=562258.




More information about the Gstreamer-bugs mailing list