[Bug 781218] New: rtsp-stream: issue when getting EADDRINUSE on bind and only one address is in the pool (alloc_ports_one_family)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 12 13:19:59 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=781218

            Bug ID: 781218
           Summary: rtsp-stream: issue when getting EADDRINUSE on bind and
                    only one address is in the pool
                    (alloc_ports_one_family)
    Classification: Platform
           Product: GStreamer
           Version: 1.11.90
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-rtsp-server
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: jonathan.karlsson at axis.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 349728
  --> https://bugzilla.gnome.org/attachment.cgi?id=349728&action=edit
Patch to fix issue when there is only one address in the pool and bind fails.

There is an issue when bind fails in alloc_ports_one_family and only one
address is in the address pool.
It goes back to the again label and that time the
gst_rtsp_address_pool_acquire_address returns NULL and the function returns.
With this patch, if we get EADDRINUSE, we just try to bind to another port
instead of going all the way back to the again label. We use the existing
'count' variable to limit it to a maximum of 20 tries.

-- 
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