summaryrefslogtreecommitdiffstats
path: root/server/providers/fail_over.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename server/ directory to src/Stephen Gallagher2010-02-181-651/+0
| | | | Also update BUILD.txt
* Handle IPv6 addresses with the async resolverStephen Gallagher2010-01-221-2/+1
|
* fail over: Change the first server pick logicMartin Nagy2009-12-151-5/+26
| | | | | | | | | | The logic of selecting the server to fail over to was changed so that we start from the server next to the one that didn't work the last time. This is because the status of a server that failed last time might get reset before we try another one. This can cause that we try to use the nonworking server repeatedly, not giving a chance to other servers. Fixes: #321
* Don't consider one address with different port numbers as the sameMartin Nagy2009-12-151-8/+22
| | | | | | | | | | | | | There were two problems with the code. We were using fo_set_server_status() instead of fo_set_port_status() when we failed to connect to a service. This is a problem because if two services use the same server, or we want to use one server with two different ports, marking the whole server as bad is incorrect. The other problem was that be_resolve_server_done() was comparing the hostent structures -- these are, however, equal across multiple server:port pairs with the same server addresses. Fixes: #321
* Correctly restart server status after the timeoutMartin Nagy2009-12-091-1/+1
| | | | | | | The macro STATUS_DIFF() was wrong causing the result to always be lower than 0, therefore the timeout was never reached. Fixes: #302
* Add some debugging statements to fail_over and resolverMartin Nagy2009-12-091-2/+60
| | | | | These were very useful for debugging and hopefully still will be in the future.
* Failover fixes and additionsSimo Sorce2009-11-181-6/+22
|
* Fix tevent_req error checking.Simo Sorce2009-11-091-4/+1
| | | | When possible using a macro that correctly deals with tstate
* Check return, zero free hostent, adhere to styleSimo Sorce2009-11-091-8/+11
|
* Add fail over utility functionsMartin Nagy2009-11-061-0/+543
These functions should be used by providers to centrally manage lists of servers. Servers are grouped into services and each service has it's own list of servers. If, however, you will try to add a same server into two different services, they will share a common structure. This means that a host will only be resolved once.