https://issues.apache.org/bugzilla/show_bug.cgi?id=50977
Paul Offord <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version| |All --- Comment #1 from Paul Offord <[email protected]> 2011-03-26 12:55:54 EDT --- I fixed the problem by adding a single line of code to TCPSampler.java as follows: public SampleResult sample(Entry e)// Entry tends to be ignored ... { . . . } else { InputStream is = sock.getInputStream(); OutputStream os = sock.getOutputStream(); // *** FIXED BY ADDING THE FOLLOWING LINE sock.setSoTimeout(getTimeout()); String req = getRequestData(); // TODO handle filenames res.setSamplerData(req); protocolHandler.write(os, req); String in = protocolHandler.read(is); res.setResponseData(in, null); res.setDataType(SampleResult.TEXT); res.setResponseCodeOK(); res.setResponseMessage("OK"); //$NON-NLS-1$ isSuccessful = true; . . . This seems to fix the problem and I'm not getting any adverse effects. Soory this isn't written like a patch but I don't know how to do it -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
