1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-29 04:25:55 -04:00
icecast-server/src
Karl Heyes 0bd5f9e74f Some have reported that if they do a series of requests in succession that
the overall time is very slow. This lag is mainly down to the sleep that
the connection and fserve threads do to prevent busy looping when idle. The
sleep has to expire even if requests are waiting.

This patch merges the tasks done by the connection and listener thread into
one thread.  It allows us to remove some locking, reduce thread usage and
service new connections more quickly as the poll/select acts as the busy
CPU prevention.

svn path=/icecast/trunk/icecast/; revision=15123
2008-07-22 02:24:30 +00:00
..
avl Don't include a per node lock unless it is really wanted. I don't think anyone 2008-07-19 01:30:16 +00:00
httpp const updates, again no functional change 2007-08-16 22:52:24 +00:00
log fix possible junk chars passed back and don't call strftime each log line, under 2008-01-24 03:28:11 +00:00
net build fix for older setups with IPv6 2008-02-28 02:16:23 +00:00
thread reduce stack allocation to 512k, the defaults tend to be quite large 2005-09-15 22:33:13 +00:00
timing Only define [u]int64_t on Windows if they haven't been defined already (e.g. in 2007-03-06 13:35:29 +00:00
admin.c Allow any number of mountpoints to be returned for streamlist. You would 2008-04-29 04:50:23 +00:00
admin.h const updates, no functional changes 2007-08-16 22:49:13 +00:00
auth_htpasswd.c htpasswd auth should apply even if no filename is specified, just reject all 2008-04-23 02:48:53 +00:00
auth_htpasswd.h fix bug #1141 2007-08-23 16:58:18 +00:00
auth_url.c only pass clients to url auth handler if the trigger is defined in the xml 2007-11-08 20:00:54 +00:00
auth_url.h return type was wrong, although it probably won't affect stability 2007-10-24 22:40:42 +00:00
auth.c htpasswd auth should apply even if no filename is specified, just reject all 2008-04-23 02:48:53 +00:00
auth.h auth sync up. Fix longstanding race bug and make stream start/stop triggers work again. 2007-11-08 19:52:51 +00:00
cfgfile.c sanity check for unspecifed url 2008-05-11 23:20:50 +00:00
cfgfile.h allow for multiple shoutcast style source clients to connect. They don't 2007-10-25 02:25:49 +00:00
client.c minor cleanups, no functional change 2007-11-21 02:55:11 +00:00
client.h type cleanups. reduces memory usage on 64bit, no difference on 32bit. closes #780 2007-12-15 17:02:16 +00:00
compat.h type cleanups. Use C99 defines if available and a missed sock_t on win32. This 2007-11-23 16:27:10 +00:00
configtest.c Add Copyright notice to each source file, as requested by debian. 2004-01-29 01:02:12 +00:00
connection.c Some have reported that if they do a series of requests in succession that 2008-07-22 02:24:30 +00:00
connection.h more sock_t cleanups, win32 should have less warnings now 2007-10-24 22:42:49 +00:00
event.c merge work. mainly stats and some log message updates 2007-10-22 02:29:49 +00:00
event.h Add Copyright notice to each source file, as requested by debian. 2004-01-29 01:02:12 +00:00
format_flac.c memory leak when handling ogg flac, and make sure that moving listeners 2006-03-15 02:24:57 +00:00
format_flac.h Add more Ogg codec handlers, there has not been that much testing on these 2005-05-07 11:01:35 +00:00
format_kate.c Add Kate and Skeleton codecs to ogg handler. patch by ogg.k.ogg.k 2008-04-19 02:11:37 +00:00
format_kate.h Add Kate and Skeleton codecs to ogg handler. patch by ogg.k.ogg.k 2008-04-19 02:11:37 +00:00
format_midi.c Add more Ogg codec handlers, there has not been that much testing on these 2005-05-07 11:01:35 +00:00
format_midi.h Add more Ogg codec handlers, there has not been that much testing on these 2005-05-07 11:01:35 +00:00
format_mp3.c header fixup for listeners. Tell any proxies to not cache and add minor tweaks 2007-10-19 14:06:07 +00:00
format_mp3.h Merge mp3 packing. mp3 (and other pass-through streams) can bre received in 2005-08-08 19:21:54 +00:00
format_ogg.c handle new content-types 2008-04-23 00:32:20 +00:00
format_ogg.h merge extra checks. minor cleanup work 2005-08-07 14:50:59 +00:00
format_skeleton.c update from win32 build. Mostly cleanup work 2008-05-12 01:21:06 +00:00
format_skeleton.h Add Kate and Skeleton codecs to ogg handler. patch by ogg.k.ogg.k 2008-04-19 02:11:37 +00:00
format_speex.c no functional/structural change but cleans up the annoying signed/unsigned pointer warnings 2007-10-04 16:48:38 +00:00
format_speex.h Add more Ogg codec handlers, there has not been that much testing on these 2005-05-07 11:01:35 +00:00
format_theora.c add subtype to yp add phase, this is to identify the codecs in use 2004-12-10 00:11:16 +00:00
format_theora.h merge multi ogg codec handling. Handle theora and/or vorbis. Place new 2004-12-07 21:06:26 +00:00
format_vorbis.c small build fix and a minor issue highlighted by coverity 2007-09-14 03:01:17 +00:00
format_vorbis.h merge multi ogg codec handling. Handle theora and/or vorbis. Place new 2004-12-07 21:06:26 +00:00
format.c handle new content-types 2008-04-23 00:32:20 +00:00
format.h missed some NULL checks from previous character set commit. Add optional charset 2007-08-30 23:36:19 +00:00
fserve.c Allow any number of mountpoints to be returned for streamlist. You would 2008-04-29 04:50:23 +00:00
fserve.h Allow rereading of the mime types file on xml reload. Also allow for specifying 2007-08-13 21:33:27 +00:00
global.c Don't impose a limit on the number of listening sockets allowed in the xml 2007-10-16 01:53:06 +00:00
global.h more sock_t cleanups, win32 should have less warnings now 2007-10-24 22:42:49 +00:00
logging.c type cleanups. Use C99 defines if available and a missed sock_t on win32. This 2007-11-23 16:27:10 +00:00
logging.h Handle http 302 response when a relay starts. The socket IO is isolated into a 2007-08-10 21:33:16 +00:00
main.c check if function exists, some older versions don't have this 2008-05-02 23:18:52 +00:00
Makefile.am Add Kate and Skeleton codecs to ogg handler. patch by ogg.k.ogg.k 2008-04-19 02:11:37 +00:00
md5.c minor cleanups 2004-11-20 02:16:59 +00:00
md5.h minor cleanups 2004-11-20 02:16:59 +00:00
refbuf.c type cleanups. reduces memory usage on 64bit, no difference on 32bit. closes #780 2007-12-15 17:02:16 +00:00
refbuf.h type cleanups. reduces memory usage on 64bit, no difference on 32bit. closes #780 2007-12-15 17:02:16 +00:00
sighandler.c this is needed for linuxthreads, without it, zombie processes are left 2005-06-10 18:01:53 +00:00
sighandler.h Add Copyright notice to each source file, as requested by debian. 2004-01-29 01:02:12 +00:00
slave.c 2 on-demand relay fixups. 2008-07-19 01:57:53 +00:00
slave.h minor cleanups, no functional change 2007-11-21 02:55:11 +00:00
source.c handle a couple of possible odd misconfiguration cases with YP. Make sure the 2008-05-21 02:19:47 +00:00
source.h Triggers for source stats updated. No point updating all source stats if fewer 2007-08-11 17:44:45 +00:00
stats.c expand debug log message to include a mountpoint reference 2008-07-19 01:36:16 +00:00
stats.h Allow any number of mountpoints to be returned for streamlist. You would 2008-04-29 04:50:23 +00:00
TODO Initial revision 2001-09-10 02:21:46 +00:00
util.c more sock_t cleanups, win32 should have less warnings now 2007-10-24 22:42:49 +00:00
util.h more sock_t cleanups, win32 should have less warnings now 2007-10-24 22:42:49 +00:00
xslt.c win32 update. change build settings so that we make the process simpler, it 2008-02-11 01:00:41 +00:00
xslt.h Patch from gtgbr@gmx.net to fix (void) function prototypes, with some minor 2005-12-17 12:23:09 +00:00
yp.c handle a couple of possible odd misconfiguration cases with YP. Make sure the 2008-05-21 02:19:47 +00:00
yp.h Patch from gtgbr@gmx.net to fix (void) function prototypes, with some minor 2005-12-17 12:23:09 +00:00