aler9
8e97f4ff61
confwatcher: fail if configuration file doesn't exist
5 years ago
Florian Vallée
f5dc53e0f2
improve config file watcher to support k8s configmap reloads
...
The config file watcher assumed a simple configuration where the
existing configuration file is overwritten by a text editor.
In practice this does not detect some more complex configuration change
scenarios such as :
* The configuration file is behind a symlink and the symlink is updated
* The configuration file is behind a double symlink (k8s configmap
update)
* The configuration file is not updated but removed the re-created
In order to fix these cases :
* Watch the configuration file parent directory instead of the file
itself, this lets us grab events event if the file was removed and a new
file is used.
* In addition to read/write event matching, watch for any change in
the configuration file path. This handles the symlink case where the
file itself hasn't changed but its location did
v2:
- apply gofmt
5 years ago
aler9
05e835e48c
confwatcher: add tests
5 years ago
aler9
97305af272
new parameter readBufferCount
5 years ago
aler9
e5364b1fc6
perform frame readings and writings in separate routines, in order to increase UDP throughput and avoid freezes caused by a single laggy reader ( #125 ) ( #162 )
5 years ago
aler9
d590805cda
move RTCP receivers into gortsplib
5 years ago
aler9
2132226f90
move client state and client tracks into gortsplib
5 years ago
aler9
9fb844331e
move UDP support into gortsplib
5 years ago
aler9
818307ff54
forbid usage of publishUser, publishPass, publishIps when source is not 'record'
5 years ago
aler9
3050893d32
support hashed credentials
5 years ago
aler9
ad195a6bd0
use 'strict' instead of 'yes' in the 'encryption' parameter
5 years ago
aler9
939dda01d0
support 'false' and 'true' values of 'encryption' parameter ( #160 )
5 years ago
aler9
b3e9249158
fix PAUSE with UDP ( #157 )"
5 years ago
aler9
19fec814fa
fix possible freeze
5 years ago
aler9
9887abc51a
fix freeze
5 years ago
aler9
5e32a526e5
support proxying rtsps streams
5 years ago
aler9
ccb8b92bfb
implement RTSPS ( #77 )
5 years ago
aler9
d83aa880cc
add anti-brute force mechanism
5 years ago
aler9
854f00afdc
update gortsplib
5 years ago
aler9
40c2eb3da2
forbid runOnPublish when source is not record ( #143 )
5 years ago
aler9
f9e6cdcb7b
rewrite client to use the new gortsplib ServerConn
5 years ago
aler9
692b236c6c
update linter settings
5 years ago
aler9
74b592b211
implement log levels; print requests and responses when log level is "debug" ( #116 )
5 years ago
aler9
18fe2d057c
print a warn message when the configuration file is not found
5 years ago
aler9
cce08c12b6
fix crash when using publishIp or readIp ( #142 )
5 years ago
aler9
286d837d9e
update gortsplib
5 years ago
aler9
19440f2486
switch to golangci-lint
5 years ago
aler9
b883240639
update gortsplib
5 years ago
aler9
20ef0e842c
add jitter and delay to rtcp receiver reports
5 years ago
aler9
0f11dd5c71
fix hot reloading of configuration on macOS and with text editors that deletes and recreates the configuration file
5 years ago
aler9
e0845a0af8
remove redundant buffer
5 years ago
aler9
c5a5c03bb2
increase udp kernel read buffer size to minimize packet losses ( #124 )
5 years ago
aler9
bed42ab2b6
allow calling PLAY twice ( #128 )
5 years ago
aler9
c929f3d963
make RTMP sources emit RTCP packets
5 years ago
aler9
5db5b44471
fix generation of rtcp receiver reports
5 years ago
aler9
4f7daacdda
cleanup
5 years ago
aler9
a9dee11496
support automatic protocol selection when proxying rtsp
5 years ago
aler9
eaf115f604
drastically improve performance when reading streams with TCP
5 years ago
aler9
8e1c9a7468
add PAUSE to supported methods in OPTIONS
5 years ago
aler9
d33ab5bec6
drastically improve performance when reading streams with UDP
5 years ago
aler9
ac74c7ed95
fix freeze when proxying streams with tcp
5 years ago
aler9
fef639c94a
fix freeze when using a rtsp source
5 years ago
aler9
f63647ab1e
update gortsplib
5 years ago
aler9
cbab55af4c
update gortsplib
5 years ago
aler9
584d2c9494
allow repeated PAUSE requests ( #107 )
5 years ago
aler9
8ff33f88ab
increase rtmp analyze timeout
5 years ago
aler9
7dc72f4490
fix compilation on windows
5 years ago
aler9
db4fc43f1b
fix crash when receiving tcp streams
5 years ago
aler9
2c9e07376c
fix execution of external commands with quotes on Windows ( #113 )
5 years ago
aler9
7a3db78de4
fix creation and deletion of paths during hot reloading
5 years ago