Skip to content

Commit

Permalink
Log suppressed IOException in SocketConnection.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Thorvardarson committed Feb 20, 2012
1 parent 40b08df commit 08a95b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@
import java.net.InetAddress;
import java.net.Socket;

import org.jsmpp.session.SMPPSession;
import org.jsmpp.session.connection.Connection;
import org.jsmpp.util.StrictBufferedInputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @author uudashr
*
*/
public class SocketConnection implements Connection {
private static final Logger logger = LoggerFactory.getLogger(SocketConnection.class);

private final Socket socket;
private final InputStream in;
Expand All @@ -47,6 +51,7 @@ public void close() {
try {
socket.close();
} catch (IOException e) {
logger.warn("Suppressing IOException while closing socket: " + e);
}
}

Expand Down

0 comments on commit 08a95b5

Please sign in to comment.