Permalink
Browse files

Implements iterating over multiple source destinations. Will not work…

… in case of spanning interpreters.
  • Loading branch information...
1 parent 84e068b commit bdaeaeac03b302b27ab7f9b796662662a95be9e8 @skinkie committed Oct 13, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 cherokee/source.c
View
6 cherokee/source.c
@@ -119,6 +119,12 @@ cherokee_source_connect (cherokee_source_t *src, cherokee_socket_t *sock)
if (src->addr_current) {
tested_all = false;
addr = src->addr_current;
+ #if 0
+ /* The following allows to 'loadbalance' and/or check other sources */
+ addr = src->addr_current->ai_next;
+ if (addr == NULL)
+ addr = addr_info;
+ #endif
} else {
tested_all = true;
addr = addr_info;

0 comments on commit bdaeaea

Please sign in to comment.