summaryrefslogtreecommitdiffstats
path: root/src/server/altservers.h
Commit message (Collapse)AuthorAgeFilesLines
* [SERVER] Support limiting alt-servers to specific namespaceSimon Rettberg2019-09-041-2/+2
| | | | | | Not really namespace but simple string matching for the image path. Path is matched from start with no support for glob or regex, so usually you want to have a trailing '/' to limit to certain directories.
* [SERVER] Fix altservers_getListForClient()Simon Rettberg2019-09-041-1/+1
| | | | | The score wasn't reset when adding clients to the list, resulting in exactly one server filling up the whole list.
* [SERVER] Get rid of alt-servers thread, per-uplink rtt historySimon Rettberg2019-08-221-6/+10
| | | | | | | | | | 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-2/+2
| | | | | * Change link to uplink everywhere * dnbd3_connection_t -> dnbd3_uplink_t
* [SERVER] rpc: Add q=logfile, q=altservers and q=config to /querySimon Rettberg2017-11-081-0/+4
|
* [SERVER] altservers: Tweak, cleanup, refactor, renameSimon Rettberg2017-11-081-2/+2
|
* [SERVER] Use stdbool.h for booleans; minor refactoring of variable and ↵Simon Rettberg2014-12-311-1/+1
| | | | function names
* [SERVER] Improve replication and reconnecting behaviourSimon Rettberg2014-12-221-1/+1
|
* Improve uplink handling, add code to debug thread creation/destruction, ↵Simon Rettberg2014-06-161-0/+2
| | | | change stupid convention of freeDiskSpace returning 0 on error, which is ambiguous to the disk simply being full...
* [SERVER] Shut down altservers finder properlySimon Rettberg2013-11-121-0/+2
|
* [SERVER] Add "client only" flag for alt serversSimon Rettberg2013-11-121-1/+1
|
* [SERVER] More debugging, more safety checks, disable alt servers that fail ↵Simon Rettberg2013-09-161-0/+2
| | | | too often
* [SERVER] Copy CRC-32 list from uplink server if availableSimon Rettberg2013-08-281-1/+1
| | | | | Split up helper.c, move file/disk related functions to fileutil.c Uplink: Make sure relayed requests are at least 1MiB
* [SERVER] On-the-fly transparent proxyingSimon Rettberg2013-08-261-4/+6
|
* [SERVER] Add command line options to create empty image of certain size with ↵Simon Rettberg2013-08-011-0/+4
| | | | empty cache map (so it needs an uplink server)
* [SERVER] Uplink handing complete (untested, as alt servers can't be defined ↵Simon Rettberg2013-07-311-0/+14
yet, so prepare for lots of fixes ;))