We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3ea2f commit 0106792Copy full SHA for 0106792
app/src/pkjs/lib/message_queue.js
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*/
16
17
-var MAX_BYTES_IN_FLIGHT = 600;
+var MAX_BYTES_IN_FLIGHT = 400;
18
19
function MessageQueue() {
20
this.queue = [];
@@ -62,7 +62,7 @@ MessageQueue.prototype.enqueue = function(message) {
62
this.log.push(message);
63
}
64
this.queue.push(message);
65
- if (this.messagesInFlight < 10 && this.bytesInFlight < MAX_BYTES_IN_FLIGHT) {
+ if (this.messagesInFlight < 6 && this.bytesInFlight < MAX_BYTES_IN_FLIGHT) {
66
console.log('sending immediately, messages in flight: ' + this.messagesInFlight + ', bytes in flight: ' + this.bytesInFlight);
67
this.dequeue();
68
} else {
0 commit comments