summaryrefslogtreecommitdiffstats
path: root/src/server/uplink.h
Commit message (Collapse)AuthorAgeFilesLines
* [SERVER] Use reference counting for uplinkSimon Rettberg2019-08-271-1/+1
| | | | First step towards less locking for proxy mode
* [SERVER] Get rid of alt-servers thread, per-uplink rtt historySimon Rettberg2019-08-221-0/+2
| | | | | | | | | | Alt-Server checks are now run using the threadpool, so we don't need a queue and dedicated thread anymore. The rtt history is now kept per uplink, so many uplinks won't overwhelm the history, making its time window very short. Also the fail counter is now split up; a global one for when the server actually isn't reachable, a local (per-uplink) one for when the server is reachable but doesn't serve the requested image.
* [SERVER] uplink: More consistent type/variable namingSimon Rettberg2019-08-181-1/+1
| | | | | * Change link to uplink everywhere * dnbd3_connection_t -> dnbd3_uplink_t
* [*] Support hop-counting in request header, protocol version 3Simon Rettberg2017-10-171-2/+2
| | | | | | | | | | | | | | We steal 8 bits from the request offset to count hops when requests get relayed by proxies. This still leaves plenty of bits for the offset (56 bits, supporting images of up to 72 petabytes). This is used to detect proxy cycles. The algorithm is not perfect but should prevent endless relays of the same request. This is backwards compatible to old clients and servers, as the server only ever sets the hopcount in relayed requests if the upstream server is using protocol version 3 or newer, and clients are automatically upwards compatible as there is practically no image larger than 74PB, so the newly introduced hop count field is always 0 even in requests from old clients.
* cleanup commitsSebastian2016-02-111-1/+1
|
* [Server] Added statistics of images and uptime to json.Stephan Schwaer2015-05-051-2/+0Star
|
* Removed dnbd3_printClients, added clients to statistics json in rpc.Stephan Schwaer2015-05-041-0/+4
|
* [SERVER] Added counters for received and sent bytes.Stephan Schwaer2015-04-271-0/+2
|
* [SERVER] Use stdbool.h for booleans; minor refactoring of variable and ↵Simon Rettberg2014-12-311-2/+2
| | | | function names
* [SERVER] On-the-fly transparent proxyingSimon Rettberg2013-08-261-1/+1
|
* [SERVER] Improve proxy mode, implement integrity check in proxy modeSimon Rettberg2013-08-121-1/+2
|
* [SERVER] Uplink handing complete (untested, as alt servers can't be defined ↵Simon Rettberg2013-07-311-7/+0Star
| | | | yet, so prepare for lots of fixes ;))
* [SERVER] Still working on the uplink... Almost theresr2013-07-261-1/+3
|
* Work in progress: uplinksr2013-07-251-1/+1
|
* ...Working on proxy mode...sr2013-07-251-0/+2
|
* "It's compiling!"sr2013-07-151-0/+3
|
* Rewriiiiiiiiitesr2013-07-151-0/+14