summaryrefslogtreecommitdiff
path: root/server/providers/fail_over.h
AgeCommit message (Collapse)AuthorFilesLines
2009-12-15Don't consider one address with different port numbers as the sameMartin Nagy1-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
2009-11-18Failover fixes and additionsSimo Sorce1-0/+2
2009-11-06Add fail over utility functionsMartin Nagy1-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.