We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b35598 commit cb6604dCopy full SHA for cb6604d
src/main/java/com/cisco/trex/stateless/TRexTransport.java
@@ -142,6 +142,21 @@ public synchronized String sendJson(String json) {
142
}
143
byte[] msg = zmqSocket.recv();
144
145
+ if (msg == null) {
146
+ zmqSocket.connect(this.connectionString);
147
+ try {
148
+ zmqSocket.send(compressed);
149
+ } catch (ZMQException e) {
150
+ throw new IllegalStateException(
151
+ "Did not get any response from server "
152
+ + getHost()
153
+ + " within timeout "
154
+ + zmqSocket.getReceiveTimeOut(),
155
+ e);
156
+ }
157
+ msg = zmqSocket.recv();
158
159
+
160
String response = this.dataCompressor.decompressBytesToString(msg);
161
LOGGER.debug("JSON Resp: {}", response);
162
return response;
0 commit comments