There was no concept of explicitly establishing a connection in HTTP/1. or HTTP/1.1. Every-time we made a new get/post request, a new connection used to be made. In the pushy-apns client, I saw that we explicitly need to make a connection with apns server before we can send a notification. In such a case, should we make a new connection for every notification request or should we make the connection once and destroy it only on server shutdown?
--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+...@googlegroups.com.
Also, from APNs:"APNs treats rapid connection and disconnection as a denial-of-service attack. You should leave a connection open unless you know it will be idle for an extended period of time—for example, if you only send notifications to your users once a day, it is acceptable practice to use a new connection each day."
On Fri, Apr 7, 2017 at 4:30 PM, Jon Chambers <j...@turo.com> wrote:
To quote the documentation (http://relayrides.github.io/pushy/apidocs/0.9/com/relayrides/pushy/apns/ApnsClient.html):> APNs clients are intended to be long-lived, persistent resources. Callers should shut them down when they are no longer needed (i.e. when shutting down the entire application).So, yes. You should only disconnect your client when your server is shutting down.-Jon
On Fri, Apr 7, 2017 at 9:45 AM, Shreerang Pande <shreera...@gmail.com> wrote:
There was no concept of explicitly establishing a connection in HTTP/1. or HTTP/1.1. Every-time we made a new get/post request, a new connection used to be made. In the pushy-apns client, I saw that we explicitly need to make a connection with apns server before we can send a notification. In such a case, should we make a new connection for every notification request or should we make the connection once and destroy it only on server shutdown?
--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+unsubscribe@googlegroups.com.