gst-rtsp-server needs SO_LINGER option set to reset the TCP immediately

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gst-rtsp-server needs SO_LINGER option set to reset the TCP immediately

krakorar
Hello,

I think gst-rtsp-server needs the SO_LINGER option to be set to reset
the TCP connection immediately.

  linger.l_onoff = 1;
  linger.l_linger = 0;

  if (setsockopt (server->server_sock.fd, SOL_SOCKET, SO_LINGER,
          (void *) &linger, sizeof (linger)) < 0)
    goto linger_failed;

Best Regards,

--
Rob Krakora
Senior Software Engineer
MessageNet Systems
101 East Carmel Dr. Suite 105
Carmel, IN 46032
(317)566-1677 Ext. 206
(317)663-0808 Fax

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-rtsp-server needs SO_LINGER option set to reset the TCP immediately

michael smith-6-3
On Fri, Jun 18, 2010 at 6:12 AM, Robert Krakora
<[hidden email]> wrote:

> Hello,
>
> I think gst-rtsp-server needs the SO_LINGER option to be set to reset
> the TCP connection immediately.
>
>  linger.l_onoff = 1;
>  linger.l_linger = 0;
>
>  if (setsockopt (server->server_sock.fd, SOL_SOCKET, SO_LINGER,
>          (void *) &linger, sizeof (linger)) < 0)
>    goto linger_failed;

Rob,

This and your other issues should get filed in bugzilla
(http://bugzilla.gnome.org is gstreamer's bug tracker), otherwise
they're likely to not get fixed.

Providing the patch as an attachment in patch format is ideal.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel