-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmsd_lite.conf
80 lines (68 loc) · 3.04 KB
/
msd_lite.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="utf-8"?>
<!--
Sizes in kb, time in seconds
-->
<!--
<skt> <rcvLoWatermark>XXXX</rcvLoWatermark> - DOES NOT WORK on Linux!
man socket(7):
...
The select(2) and poll(2) system calls currently do not respect the SO_RCVLOWAT
setting on Linux, and mark a socket readable when even a single byte of data is
available.
...
-->
<msd>
<log>
<file>/dev/null</file>
</log>
<threadPool>
<threadsCountMax>0</threadsCountMax> <!-- 0 = auto -->
<fBindToCPU>yes</fBindToCPU> <!-- Bind threads to CPUs. -->
<fCacheGetTimeSyscall>yes</fCacheGetTimeSyscall> <!-- Cache gettime() syscalls.. -->
<timerGranularity>100</timerGranularity> <!-- 1/1000 sec -->
</threadPool>
<!-- HTTP server -->
<HTTP>
<bindList>
<bind><address>0.0.0.0:7088</address><fAcceptFilter>y</fAcceptFilter></bind>
<bind><address>[::]:7088</address></bind>
</bindList>
<hostnameList> <!-- Host names for all bindings. -->
<hostname>*</hostname>
</hostnameList>
</HTTP>
<hubProfileList> <!-- Stream hub profiles templates. -->
<hubProfile>
<fDropSlowClients>no</fDropSlowClients> <!-- Disconnect slow clients. -->
<fSocketHalfClosed>no</fSocketHalfClosed> <!-- Enable shutdown(SHUT_RD) for clients. -->
<fSocketTCPNoDelay>yes</fSocketTCPNoDelay> <!-- Enable TCP_NODELAY for clients. -->
<fSocketTCPNoPush>yes</fSocketTCPNoPush> <!-- Enable TCP_NOPUSH / TCP_CORK for clients. -->
<precache>4096</precache> <!-- Pre cache size. Can be overwritten by arg from user request. -->
<ringBufSize>1024</ringBufSize> <!-- Stream receive ring buffer size. Must be multiple of sndBlockSize. -->
<skt>
<sndBuf>512</sndBuf> <!-- Max send block size, apply to clients sockets only, must be > sndBlockSize. -->
<sndLoWatermark>64</sndLoWatermark> <!-- Send block size. Must be multiple of 4. -->
<!-- <congestionControl>htcp</congestionControl> --> <!-- TCP_CONGESTION: this value replace/overwrite(!) all others cc settings: cc from http req args, http server settings, OS default -->
</skt>
<headersList> <!-- Custom HTTP headers (sended before stream). -->
<header>Pragma: no-cache</header>
<header>Content-Type: video/mpeg</header>
<header>ContentFeatures.DLNA.ORG: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000</header>
<header>TransferMode.DLNA.ORG: Streaming</header>
</headersList>
</hubProfile>
</hubProfileList>
<sourceProfileList> <!-- Stream source profiles templates. -->
<sourceProfile>
<skt>
<rcvBuf>512</rcvBuf> <!-- Multicast recv socket buf size. -->
<rcvLoWatermark>48</rcvLoWatermark> <!-- Actual cli_snd_block_min if polling is off. -->
<rcvTimeout>2</rcvTimeout> <!-- STATUS, Multicast recv timeout. -->
</skt>
<multicast> <!-- For: multicast-udp and multicast-udp-rtp. -->
<ifName>@ifName@</ifName> <!-- For multicast receive. -->
<rejoinTime>0</rejoinTime> <!-- Do IGMP/MLD leave+join every X seconds. -->
</multicast>
</sourceProfile>
</sourceProfileList>
</msd>