]> git.tuebingen.mpg.de Git - paraslash.git/commit
udp_recv: Close receiver after 5 seconds of inactivitly.
authorAndre Noll <maan@systemlinux.org>
Sun, 21 Mar 2010 13:13:18 +0000 (14:13 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 21 Mar 2010 13:13:18 +0000 (14:13 +0100)
commit4d4379901a0a01859728d56795a7ab6ada9c876b
treeaa975842d475928e9ebafb07fe8a31abbf1331d0
parent85c25aaa851aa20aba167b0fa5c827d115079681
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.
error.h
udp_recv.c