From 972fc3eada74e18eb84a59638e51873b6ab4fc68 Mon Sep 17 00:00:00 2001 From: Gregor Wolf Date: Fri, 7 Jul 2017 15:02:27 +0200 Subject: [PATCH] Fix for Max open outbound sockets per request reached --- test/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/README.md b/test/README.md index c80b8a9..9f07535 100644 --- a/test/README.md +++ b/test/README.md @@ -83,3 +83,21 @@ sslHostCheck = false; ### Test execution Open the URL /sap/hana/testtools/unit/jasminexs/TestRunner.xsjs?package=com.sap.sapmentors.sitreg.test on your HANA System. To use this for an automated test you can add the URL parameter format=json to get the output as JSON. + +It can happen that you will see the following error: + +Error: HttpClient.request: Max open outbound sockets per request reached. in /sap/hana/testtools/unit/jasminexs/lib/http.xsjslib (line 20) + +This is caused by a bug in the SAP Standard (Bug is reported with a fix since March 13, 2017 in incident 71681 / 2017). To fix it yourself you need to replace the line: + +``` +return client.getResponse(); +``` +**/sap/hana/testtools/unit/jasminexs/lib/http.xsjslib** with: + +``` + var response = client.getResponse(); + // close the connection + client.close(); + return response; +```