Skip to content

Commit e781132

Browse files
committed
Fix #249: Enable autoClose, when using SOCKS PROXY
1 parent 80a29bf commit e781132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/notnoop/apns/internal/ApnsConnectionImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private synchronized Socket getOrCreateSocket(boolean resend) throws NetworkIOEx
277277
try {
278278
proxySocket = new Socket(proxy);
279279
proxySocket.connect(new InetSocketAddress(host, port), connectTimeout);
280-
socket = ((SSLSocketFactory) factory).createSocket(proxySocket, host, port, false);
280+
socket = ((SSLSocketFactory) factory).createSocket(proxySocket, host, port, true);
281281
success = true;
282282
} finally {
283283
if (!success) {

0 commit comments

Comments
 (0)