client: wait until the TEARDOWN response is sent to close the connection
authorAlessandro Decina <alessandro.d@gmail.com>
Sat, 17 Nov 2012 13:51:52 +0000 (14:51 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Nov 2012 08:32:19 +0000 (09:32 +0100)
commit65042a9551a9cf4586d6e3fa49e6a10f25873553
treea35c1e876c710815551fde58ed42a36cfc826aa7
parent0996266342aa486d7680ccb9f414fa9c08fa42aa
client: wait until the TEARDOWN response is sent to close the connection

Responses can be sent async so we need to wait until the TEARDOWN response has
been written before we close the connection to the client. This avoids the risk
of writing/polling closed sockets.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=688535
gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-client.h