mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-24 07:16:43 +00:00
fix http->mdp rhizome fetch failover regression.
This commit is contained in:
parent
9b09021605
commit
53ce40a053
@ -1527,12 +1527,12 @@ void rhizome_fetch_poll(struct sched_ent *alarm)
|
||||
rhizome_fetch_mdp_slot_callback(alarm);
|
||||
break;
|
||||
|
||||
default:
|
||||
default:
|
||||
// timeout or socket error, close the socket
|
||||
if (config.debug.rhizome_rx)
|
||||
DEBUGF("Closing due to timeout or error %x (%x %x)", alarm->poll.revents, POLLHUP, POLLERR);
|
||||
if (slot->state!=RHIZOME_FETCH_FREE)
|
||||
rhizome_fetch_close(slot);
|
||||
if (slot->state!=RHIZOME_FETCH_FREE&&slot->state!=RHIZOME_FETCH_RXFILEMDP)
|
||||
rhizome_fetch_switch_to_mdp(slot);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user