usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject [1/3] incubator-usergrid git commit: fix for bad push notifications channel
Date Thu, 02 Apr 2015 18:08:30 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o-dev 3c0a8a8d3 -> da8d7b6c9


fix for bad push notifications channel


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/20eef256
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/20eef256
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/20eef256

Branch: refs/heads/two-dot-o-dev
Commit: 20eef2565f3da56d5a97deefd4836ee791c36bff
Parents: 3c0a8a8
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Thu Apr 2 08:44:26 2015 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Thu Apr 2 08:44:26 2015 -0600

----------------------------------------------------------------------
 .../services/notifications/apns/FailedConnectionListener.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/20eef256/stack/services/src/main/java/org/apache/usergrid/services/notifications/apns/FailedConnectionListener.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/apns/FailedConnectionListener.java
b/stack/services/src/main/java/org/apache/usergrid/services/notifications/apns/FailedConnectionListener.java
index 552701f..9e3552f 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/apns/FailedConnectionListener.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/apns/FailedConnectionListener.java
@@ -23,6 +23,7 @@ import org.slf4j.LoggerFactory;
 
 import javax.net.ssl.SSLException;
 import javax.net.ssl.SSLHandshakeException;
+import java.nio.channels.ClosedChannelException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.concurrent.BlockingQueue;
@@ -40,7 +41,7 @@ public class FailedConnectionListener implements com.relayrides.pushy.apns.Faile
     @Override
     public void handleFailedConnection(PushManager<? extends SimpleApnsPushNotification>
pushManager, Throwable cause) {
         List<SimpleApnsPushNotification> notifications = new ArrayList<SimpleApnsPushNotification>();
-        if (cause instanceof SSLException || cause instanceof SSLHandshakeException) { //cert
is probably bad so shut it down.
+        if (cause instanceof SSLException || cause instanceof SSLHandshakeException || cause
instanceof ClosedChannelException) { //cert is probably bad so shut it down.
             if (!pushManager.isShutDown()) {
                 pushManager.unregisterFailedConnectionListener(this);
 


Mime
View raw message