diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-08-19 18:52:47 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-08-19 18:52:47 +0200 |
commit | 2607ff079da6f01831cd809f83aaabab1a89a428 (patch) | |
tree | f6ae6077c1ce2575f36e779222ef956b5876200b | |
parent | 8f6fd320654f5390d72027ac289921f1f26e40b4 (diff) |
server: use 5 second linger period in SO_LINGER
Wait 5 seconds before clearing the send buffers and reseting the connection with
the client when we do a close. This should be enough time to get the message to
the client.
See #622757
-rw-r--r-- | gst/rtsp-server/rtsp-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-server.c b/gst/rtsp-server/rtsp-server.c index 7b52ffa..cc03456 100644 --- a/gst/rtsp-server/rtsp-server.c +++ b/gst/rtsp-server/rtsp-server.c @@ -480,7 +480,7 @@ gst_rtsp_server_sink_init_send (GstRTSPServer * server) /* make sure socket is reset immediately after close. This ensure that we can * reuse the socket quickly. */ linger.l_onoff = 1; - linger.l_linger = 0; + linger.l_linger = 5; if (setsockopt (server->server_sock.fd, SOL_SOCKET, SO_LINGER, (void *) &linger, sizeof (linger)) < 0) goto linger_failed; |