[Bug 687782] New: udpsrc does not handle EHOSTUNREACH for Linux as it does for Win32

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Nov 6 08:29:46 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=687782
  GStreamer | gst-plugins-good | 1.x

           Summary: udpsrc does not handle EHOSTUNREACH for Linux as it
                    does for Win32
    Classification: Platform
           Product: GStreamer
           Version: 1.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: rob.krakora at messagenetsystems.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


I have found that the same code that was added to udpsrc for WSAECONNRESET for
WIN32 is also needed for EHOSTUNREACH for Linux.  I have spend the last two
days tracking this down and would not have found it for some time had the
WSAECONNRESET fix for WIN32 not been present in the code.

#ifdef G_OS_WIN32
      /* WSAECONNRESET for a UDP socket means that a packet sent with udpsink
       * generated a "port unreachable" ICMP response. We ignore that and try
       * again. */
      if (WSAGetLastError () == WSAECONNRESET) {
        g_free (pktdata);
        pktdata = NULL;
        goto retry;
      }
      if (WSAGetLastError () != WSAEINTR)
        goto receive_error;
#else
      /* EHOSTUNREACH for a UDP socket means that a packet sent with udpsink
       * generated a "port unreachable" ICMP response. We ignore that and try
       * again. */

      if (errno == EHOSTUNREACH) {
        g_free (pktdata);
        pktdata = NULL;
        goto retry;
      }
      if (errno != EAGAIN && errno != EINTR)
        goto receive_error;
#endif

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list