11 lines
725 B
Python
11 lines
725 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 tokenTimeout
|
|
tokenTimeout = 120.0 # How long it takes, in seconds, for a login token to time out.
|
|
global tokenLength
|
|
tokenLength = 128 # How long the generated token is, in bytes. Note that the the generated token that is received/sent from/to the client is 2x longer, since it's converted from/to hex.
|