diff --git a/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java b/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java index 2d444cef26..4f688d4bb4 100644 --- a/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java +++ b/src/protocol/native/org/apache/jmeter/protocol/system/NativeCommand.java @@ -103,6 +103,8 @@ public class NativeCommand { if (stdin != null) { swin = new StreamCopier(new FileInputStream(stdin), proc.getOutputStream()); swin.start(); + } else { + proc.getOutputStream().close(); // ensure the application does not hang if it requests input } int exitVal = proc.waitFor(); diff --git a/xdocs/changes.xml b/xdocs/changes.xml index 117b6fac63..b6c9e044d4 100644 --- a/xdocs/changes.xml +++ b/xdocs/changes.xml @@ -230,6 +230,7 @@ Previously the default was 1, which could cause unexpected additional traffic.
  • 54913 - JMSPublisherGui incorrectly restores its state
  • 55027 - Test Action regression, duration value is not recorded (nightly build)
  • 55163 - BeanShellTestElement fails to quote string when calling testStarted(String)/testEnded(String)
  • +
  • 55349 - NativeCommand hangs if no input file is specified and the application requests input
  • Controllers