comparison src/http.c @ 130:cc3e3f370aec

tune for streaming.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sun, 10 Oct 2010 22:44:28 +0900
parents 5a380559a61e
children 7b663556757f
comparison
equal deleted inserted replaced
129:4f6d9621ee00 130:cc3e3f370aec
258 * 2.2 tdata->streamer->mutex $B$r(B unlock 258 * 2.2 tdata->streamer->mutex $B$r(B unlock
259 */ 259 */
260 static UpnpWebFileHandle 260 static UpnpWebFileHandle
261 get_file_stream (const char *fullpath, thread_data *tdata) 261 get_file_stream (const char *fullpath, thread_data *tdata)
262 { 262 {
263 #define STREAM_QUEUE (1024) 263 #define STREAM_QUEUE (8192)
264 struct web_file_t *file; 264 struct web_file_t *file;
265 int i = 0; 265 int i = 0;
266 file = malloc (sizeof (struct web_file_t)); 266 file = malloc (sizeof (struct web_file_t));
267 267
268 // 2.1 tdata->streamer->mutex $B$r(B lock $B$7$F$+$i0J2<$N(Bloop$B=hM}$r9T$&(B(loop$B:GBg?t$O(B16$B$G7h$aBG$A(B) 268 // 2.1 tdata->streamer->mutex $B$r(B lock $B$7$F$+$i0J2<$N(Bloop$B=hM}$r9T$&(B(loop$B:GBg?t$O(B16$B$G7h$aBG$A(B)