Bug 584610 - RecvLoadRemoteScript uses a tiny buffer to load script [r=smaug] a=blocking2.0
authorMark Finkle <mark.finkle@gmail.com>
Fri, 27 Aug 2010 13:25:36 -0700
changeset 51602 256514ea6d14d04230b0a6d64cf5eb69356bd4c5
parent 51601 1d307da4917ab2a2306b7c8d58cac9b195cc27ae
child 51603 fa9a6337669bf1283eb99f1abec57292c57b12ed
push idunknown
push userunknown
push dateunknown
reviewerssmaug, blocking2.0
bugs584610
milestone2.0b5pre
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 584610 - RecvLoadRemoteScript uses a tiny buffer to load script [r=smaug] a=blocking2.0
content/base/src/nsFrameMessageManager.cpp
--- a/content/base/src/nsFrameMessageManager.cpp
+++ b/content/base/src/nsFrameMessageManager.cpp
@@ -612,17 +612,17 @@ nsFrameScriptExecutor::LoadFrameScriptIn
   if (!channel) {
     return;
   }
 
   nsCOMPtr<nsIInputStream> input;
   channel->Open(getter_AddRefs(input));
   nsString dataString;
   if (input) {
-    const PRUint32 bufferSize = 1024;
+    const PRUint32 bufferSize = 8192;
     char buffer[bufferSize];
     nsCString data;
     PRUint32 avail = 0;
     input->Available(&avail);
     PRUint32 read = 0;
     if (avail) {
       while (NS_SUCCEEDED(input->Read(buffer, bufferSize, &read)) && read) {
         data.Append(buffer, read);