[gstreamer-bugs] [Bug 622757] gst-rtsp-server needs the SO_LINGER option to be set to reset the TCP connection immediately for port reuse

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Aug 19 09:52:05 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=622757
  GStreamer | gst-rtsp-server | 0.10.5

Wim Taymans <wim.taymans> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |

--- Comment #11 from Wim Taymans <wim.taymans at gmail.com> 2010-08-19 16:52:02 UTC ---
The SO_LINGER patch doesn't work so well after all. 

The problem is that right after the TEARDOWN reply has been sent to the client,
the connection is closed. Because SO_LINGER is now off, it discards any data
that might still be in the send buffers and sends a RST to the client. This
sometimes causes the client to fail to read the reply of the TEARDOWN.

I also tried to set the linger parameter to something else than 0, which causes
the TCP stack to wait for this amount of seconds before clearing and reseting
the connection. With a 5 second linger, this made things work again.

Also, SO_LINGER doesn't seem to be well supported/implemented on all platforms.

I'm considering revering the patch...

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