ASF Bugzilla – Attachment 27653 Details for
Bug 51918
GZIP compressed traffic produces errors, when multiple connections allowed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
readBuffer local in readResponse()
Bug_51918_readbuffer.patch (text/plain), 1.75 KB, created by
Milamber
on 2011-10-01 07:23:51 UTC
(
hide
)
Description:
readBuffer local in readResponse()
Filename:
MIME Type:
Creator:
Milamber
Created:
2011-10-01 07:23:51 UTC
Size:
1.75 KB
patch
obsolete
>Index: src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java >=================================================================== >--- src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java (revision 1177932) >+++ src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java (working copy) >@@ -1548,7 +1548,7 @@ > */ > public byte[] readResponse(SampleResult sampleResult, InputStream in, int length) throws IOException { > >- byte[] readBuffer = getThreadContext().getReadBuffer(); >+ byte[] readBuffer = new byte[8192]; > int bufferSize=32;// Enough for MD5 > > MessageDigest md=null; >Index: src/core/org/apache/jmeter/threads/JMeterContext.java >=================================================================== >--- src/core/org/apache/jmeter/threads/JMeterContext.java (revision 1177932) >+++ src/core/org/apache/jmeter/threads/JMeterContext.java (working copy) >@@ -47,8 +47,6 @@ > > private int threadNum; > >- private byte[] readBuffer = null; >- > private boolean isReinitSubControllers = false; > > JMeterContext() { >@@ -66,7 +64,6 @@ > previousSampler = null; > samplingStarted = false; > threadNum = 0; >- readBuffer = null; > thread = null; > isReinitSubControllers = false; > } >@@ -80,18 +77,6 @@ > return variables; > } > >- /** >- * A temporary buffer that can be shared between samplers in a thread. >- * >- * @return the shared read buffer >- */ >- public byte[] getReadBuffer() { >- if (readBuffer == null) { >- readBuffer = new byte[8192]; >- } >- return readBuffer; >- } >- > public void setVariables(JMeterVariables vars) { > this.variables = vars; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51918
:
27637
| 27653