FACT++  1.0
void retry_bad_connection ( DIC_BAD_CONNECTION bad_connp)

Definition at line 1583 of file dic.c.

References bad_conn::conn, dll_get_next(), move_to_notok_service(), dic_serv::prev, request_dns_info(), bad_conn::retrying, and DIC_CONNECTION::service_head.

Referenced by handle_dns_info().

1584 {
1585 DIC_SERVICE *servp, *auxp;
1586 int found = 0;
1587 void move_to_notok_service();
1588 
1589  if(!bad_connp)
1590  return;
1591  servp = (DIC_SERVICE *)bad_connp->conn.service_head;
1592  while( (servp = (DIC_SERVICE *) dll_get_next(
1593  (DLL *) bad_connp->conn.service_head,
1594  (DLL *) servp)) )
1595  {
1596 /*
1597  servp->pending = WAITING_DNS_UP;
1598  servp->conn_id = 0;
1599 */
1600  auxp = servp->prev;
1601  move_to_notok_service( servp );
1602  servp = auxp;
1603  found = 1;
1604  }
1605  bad_connp->retrying = 1;
1606  if(found)
1607  request_dns_info(0);
1608 }
void move_to_notok_service(DIC_SERVICE *servp)
Definition: dic.c:1655
char * service_head
Definition: dim.h:424
Definition: dim.h:530
struct dic_serv * prev
Definition: dim.h:459
Definition: dim.h:457
int retrying
Definition: dic.c:38
static void request_dns_info(int id)
Definition: dic.c:1245
DIC_CONNECTION conn
Definition: dic.c:36
DLL * dll_get_next(DLL *head, DLL *item)
Definition: dll.c:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function: