Skip to content

Commit

Permalink
add self healing for slice plugin by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jpappa200 committed Aug 8, 2023
1 parent ecbee22 commit 980e0ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/go-atscfg/remapdotconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ func buildEdgeRemapLine(
rangeReqTxt := ""
if ds.RangeRequestHandling != nil {
crr := false
addIms := false

if *ds.RangeRequestHandling == tc.RangeRequestHandlingBackgroundFetch {
rangeReqTxt = `@plugin=background_fetch.so @pparam=--config=bg_fetch.config` +
Expand All @@ -736,6 +737,7 @@ func buildEdgeRemapLine(
paramsStringFor(dsConfigParamsMap["slice.pparam"], &warnings)
rangeReqTxt += ` `
crr = true
addIms = true
} else if *ds.RangeRequestHandling == tc.RangeRequestHandlingCacheRangeRequest {
crr = true
}
Expand All @@ -744,6 +746,9 @@ func buildEdgeRemapLine(
rangeReqTxt += `@plugin=cache_range_requests.so ` +
paramsStringFor(dsConfigParamsMap["cache_range_requests.pparam"], &warnings)
}
if addIms {
rangeReqTxt += `@pparam=--consider-ims `
}
}

// Hack for moving the range directive into the raw remap text
Expand Down

0 comments on commit 980e0ab

Please sign in to comment.