summaryrefslogtreecommitdiffstats
path: root/server/providers/fail_over.h
Commit message (Collapse)AuthorAgeFilesLines
* Don't consider one address with different port numbers as the sameMartin Nagy2009-12-151-1/+1
| | | | | | | | | | | | | 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
* Failover fixes and additionsSimo Sorce2009-11-181-0/+2
|
* Add fail over utility functionsMartin Nagy2009-11-061-0/+106
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.