mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
call switch to mdp fetch if http request setup fails.
This commit is contained in:
parent
a07e5761c4
commit
629a36f041
@ -73,6 +73,8 @@ struct rhizome_fetch_slot {
|
||||
int prefix_length;
|
||||
};
|
||||
|
||||
static int rhizome_fetch_switch_to_mdp(struct rhizome_fetch_slot *slot);
|
||||
|
||||
/* Represents a queue of fetch candidates and a single active fetch for bundle payloads whose size
|
||||
* is less than a given threshold.
|
||||
*
|
||||
@ -543,7 +545,9 @@ static int schedule_fetch(struct rhizome_fetch_slot *slot)
|
||||
/* Fetch via overlay, either because no IP address was provided, or because
|
||||
the connection/attempt to fetch via HTTP failed. */
|
||||
WHY("Rhizome fetching via overlay not implemented");
|
||||
slot->state=RHIZOME_FETCH_RXFILEMDP;
|
||||
slot->state=RHIZOME_FETCH_RXFILEMDP;
|
||||
rhizome_fetch_switch_to_mdp(slot);
|
||||
return 0;
|
||||
|
||||
bail:
|
||||
if (sock != -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user