[Bug 710078] New: rtspserver test: "racy" behavior in get_unused_port function
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Oct 14 09:01:49 CEST 2013
https://bugzilla.gnome.org/show_bug.cgi?id=710078
GStreamer | gst-rtsp-server | unspecified
Summary: rtspserver test: "racy" behavior in get_unused_port
function
Classification: Platform
Product: GStreamer
Version: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-rtsp-server
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: patricia at axis.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=257231)
View: https://bugzilla.gnome.org/attachment.cgi?id=257231
Review: https://bugzilla.gnome.org/review?bug=710078&attachment=257231
fixed racy behavior in rtspserver tests
Running simultaneously test instances, will sooner or later lead to failed test
results.
Investigate the get_unused_port function. After a successful call to bind, the
port information is retrieved and returned (used later as a global variable
test_port).
The problem is that, the function returns the port number after the socket has
been closed so the uniqueness of the test port is not guaranteed.
The attached patch suggests a solution to this problem.
--
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