// ensure we don't send a packet for every output byte
socketOutputStream = new BufferedOutputStream(socket.getOutputStream(), socket.getSendBufferSize());
} catch (Exception e) {
String message = String.format("Could not connect to server: %s", serverAddress);
log.tracef(e, "Could not connect to server: %s", serverAddress);
throw new TransportException(message, e, serverAddress);
}
}