10 lines
636 B
Python
10 lines
636 B
Python
global connBuffer
|
|
connBuffer = 1024 # How large can a buffer piece be in bytes?
|
|
global bufferCost
|
|
bufferCost = 1024 # Virtually add extra cost to each buffer piece to prevent clients from overloading the server by sending super small pieces.
|
|
global maxBuffer
|
|
maxBuffer = 20*1024*1024 # The maximum buffer size of a stream in bytes. Old buffers are discarded, clients that depend on them get disconnected.
|
|
global minDelay
|
|
minDelay = 0.05 # The minimum delay (pause between each buffer iteration) the user can set in seconds. Lower values cause higher CPU usage.
|
|
global maxDelay
|
|
maxDelay = 1 # The maximum delay the user can set. |