Skip to content

Commit

Permalink
TradeClient: Turned on TLs keepalive for server connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Apr 3, 2015
1 parent 47fb743 commit 4d4e5fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/coinswap/market/TradeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ private void connect() {
while(true) try {
log.info("Connecting to trade server (" + HOST + ":" + PORT + ")");
SSLSocket socket = (SSLSocket) factory.createSocket(HOST, PORT);
socket.setKeepAlive(true);

connection = new Connection(socket);
initListeners();
Expand Down

0 comments on commit 4d4e5fe

Please sign in to comment.