Bug 869208 - Increase the buffer size we're using to deliver network streams to OOPP plugins, r=aklotz
authorBenjamin Smedberg <benjamin@smedbergs.us>
Tue, 06 Jan 2015 12:40:15 -0500
changeset 222712 cf207a98cbb9aacbbb472ece1d136504966cfcc9
parent 222711 9bb49c25941819c41e7c40633c67a7baef9aa4a2
child 222713 95d32869e77fdbf8c9d386097db87c4dd49f984a
push id53699
push userbsmedberg@mozilla.com
push dateThu, 08 Jan 2015 17:42:53 +0000
treeherdermozilla-inbound@cf207a98cbb9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaklotz
bugs869208
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 869208 - Increase the buffer size we're using to deliver network streams to OOPP plugins, r=aklotz
dom/plugins/ipc/BrowserStreamParent.cpp
--- a/dom/plugins/ipc/BrowserStreamParent.cpp
+++ b/dom/plugins/ipc/BrowserStreamParent.cpp
@@ -8,17 +8,17 @@
 #include "PluginAsyncSurrogate.h"
 #include "PluginInstanceParent.h"
 #include "nsNPAPIPlugin.h"
 
 #include "mozilla/unused.h"
 
 // How much data are we willing to send across the wire
 // in one chunk?
-static const int32_t kSendDataChunk = 0x4000;
+static const int32_t kSendDataChunk = 0xffff;
 
 namespace mozilla {
 namespace plugins {
 
 BrowserStreamParent::BrowserStreamParent(PluginInstanceParent* npp,
                                          NPStream* stream)
   : mNPP(npp)
   , mStream(stream)