Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlord: Support POP v9 and its finishRockHeaderUpdating command #19

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
10 changes: 9 additions & 1 deletion src/overlord/Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ export class ProxyOverlord {
console.log("Proxy finished any pending caching transactions");
}

async finishRockHeaderUpdating() {
const options = {
'Overlord-job.type': 'Rock::HeaderUpdater',
};
await this._remoteCall("/finishJobs", options);
console.log("Proxy finished all HTTP header updating jobs in rock cache_dir(s)");
}

// Wait for the proxy to accumulate exactly the given number of
// not-yet-satisfied requests (containing the given URL path). This only
// works if the proxy can parse request (headers) but cannot satisfy those
Expand Down Expand Up @@ -526,7 +534,7 @@ export class ProxyOverlord {
host: "127.0.0.1",
port: 13128,
headers: {
'Pop-Version': 8,
'Pop-Version': 9,
},
};

Expand Down