"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/server.c" between
haproxy-2.2.1.tar.gz and haproxy-2.2.2.tar.gz

About: HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.

server.c  (haproxy-2.2.1):server.c  (haproxy-2.2.2)
skipping to change at line 3724 skipping to change at line 3724
* 1 if server status has not changed * 1 if server status has not changed
* *
* Must be called with the server lock held. * Must be called with the server lock held.
*/ */
int snr_update_srv_status(struct server *s, int has_no_ip) int snr_update_srv_status(struct server *s, int has_no_ip)
{ {
struct dns_resolvers *resolvers = s->resolvers; struct dns_resolvers *resolvers = s->resolvers;
struct dns_resolution *resolution = s->dns_requester->resolution; struct dns_resolution *resolution = s->dns_requester->resolution;
int exp; int exp;
/* If resolution is NULL we're dealing with SRV records Additional record
s */
if (resolution == NULL) {
if (s->next_admin & SRV_ADMF_RMAINT)
return 1;
srv_set_admin_flag(s, SRV_ADMF_RMAINT, "entry removed from SRV re
cord");
return 0;
}
switch (resolution->status) { switch (resolution->status) {
case RSLV_STATUS_NONE: case RSLV_STATUS_NONE:
/* status when HAProxy has just (re)started. /* status when HAProxy has just (re)started.
* Nothing to do, since the task is already automatically started */ * Nothing to do, since the task is already automatically started */
break; break;
case RSLV_STATUS_VALID: case RSLV_STATUS_VALID:
/* /*
* resume health checks * resume health checks
* server will be turned back on if health check is safe * server will be turned back on if health check is safe
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)