Skip to content

Commit

Permalink
Change number of bytes requested
Browse files Browse the repository at this point in the history
After some discussion we'll settle on 1 << 18, which is roughly around the max number of bytes we expect from a packet sent from the device.

wtsnz#60 (comment)
  • Loading branch information
wtsnz committed Feb 1, 2021
1 parent caf343d commit ff24742
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deps/portal/src/Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ void Channel::InternalThreadEntry()
while (running) {
std::unique_lock<std::mutex> lock(worker_mutex);

const uint32_t numberOfBytesToAskFor =
65536; // (1 << 16); // This is the value in DarkLighting
const uint32_t numberOfBytesToAskFor = 1 << 18; // 262,144
uint32_t numberOfBytesReceived = 0;
auto vector = std::vector<char>(numberOfBytesToAskFor);

Expand Down

0 comments on commit ff24742

Please sign in to comment.