From: Andre Noll Date: Sun, 21 Mar 2010 13:13:18 +0000 (+0100) Subject: udp_recv: Close receiver after 5 seconds of inactivitly. X-Git-Tag: v0.4.2~20^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=4d4379901a0a01859728d56795a7ab6ada9c876b;hp=4d4379901a0a01859728d56795a7ab6ada9c876b udp_recv: Close receiver after 5 seconds of inactivitly. There is no way for the UDP receiver to tell that para_server won't send any more data, e.g. because the UDP target has been deleted. Currently, in this case the UDP receiver listens on its socket indefinitely and the buffer tree stays active as well. This can be fatal if para_server starts sending data for another audio format much later. So close the UDP socket if no data has been received for 5 seconds. ---