PR feedback and a manual test

This commit is contained in:
Kevin Darby committed 2019-06-10 12:46:37 -04:00
1 parent e8b5d4f8fd
commit af365177d0
5 files changed
+97 -66

No files matched your search

+3 -3
View File
@@ -246,8 +246,8 @@ public:
pupd->mutable_security()->CopyFrom(handle.get_normalized_security());
snapshot = true;
}
if (!entitled) {
if(chan.entitled()) snapshot = true;
//if we are not entitled AND this is the first request since we lost our entitlement, zero out books
if (!entitled && chan.entitled() ) {
if (HASFLAG(flags, MDRequest::BBO) || HASFLAG(flags, MDRequest::DIRECT)) {
auto* p = pupd->mutable_direct();
for (size_t x = 0; x < COCONUT_MAX_DEPTH; ++x) {
@@ -263,7 +263,7 @@ public:
}
}
}
else {
if(entitled) {
// If we are entitled now but this is the first request where we are ensure we send all values
if(!chan.entitled()) snapshot = true;