[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 10:21:18 PDT 2010


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

--- Comment #12 from Robert Krakora <rob.krakora at messagenetsystems.com> 2010-08-19 17:21:15 UTC ---
(In reply to comment #11)
> 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...

I see your point and can confirm this...  The problem seems to occur only when
the client is killed and effectively "orphans" the connection anyway causing
the timeout to have to end the connection on the server end.  I ran into this
debugging the client when I was abruptly killing it and restarting rapidly. 
Sorry if I wasted your time.

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