Skip to content

Commit d7a543f

Browse files
committed
Merge branch 'reconnect' of https://github.com/ningning-chen/trex-java-sdk into reconnect
2 parents 7a7e594 + cb6604d commit d7a543f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/java/com/cisco/trex/stateless/TRexTransport.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,6 @@ public synchronized String sendJson(String json) {
149149
msg = zmqSocket.recv();
150150
}
151151

152-
if (msg == null) {
153-
zmqSocket.connect(this.connectionString);
154-
try {
155-
zmqSocket.send(compressed);
156-
} catch (ZMQException e) {
157-
throw new IllegalStateException(
158-
"Did not get any response from server "
159-
+ getHost()
160-
+ " within timeout "
161-
+ zmqSocket.getReceiveTimeOut(),
162-
e);
163-
}
164-
msg = zmqSocket.recv();
165-
}
166-
167152
String response = this.dataCompressor.decompressBytesToString(msg);
168153
LOGGER.debug("JSON Resp: {}", response);
169154
return response;

0 commit comments

Comments
 (0)