diff --git a/src/main/java/com/notnoop/apns/internal/ApnsConnectionImpl.java b/src/main/java/com/notnoop/apns/internal/ApnsConnectionImpl.java index b7a36397..2a9de7cd 100644 --- a/src/main/java/com/notnoop/apns/internal/ApnsConnectionImpl.java +++ b/src/main/java/com/notnoop/apns/internal/ApnsConnectionImpl.java @@ -277,7 +277,7 @@ private synchronized Socket getOrCreateSocket(boolean resend) throws NetworkIOEx try { proxySocket = new Socket(proxy); proxySocket.connect(new InetSocketAddress(host, port), connectTimeout); - socket = ((SSLSocketFactory) factory).createSocket(proxySocket, host, port, false); + socket = ((SSLSocketFactory) factory).createSocket(proxySocket, host, port, true); success = true; } finally { if (!success) {