Comments (3)
I've made a little test:
blocking the network connection to android.googleapis.com using iptables with
the following command:
sudo iptables -I OUTPUT -d 173.194.70.95 -j DROP
The code blocks in conn.getOutputStream().
In the attachment my suggestion for fixing the problem: adding a constant for
network timeout and adding setConnectTimeout and setReadTimeout in
getConnection method.
Original comment by [email protected]
on 18 Mar 2014 at 9:04
Attachments:
from gcm.
I was unable to replicate with the iptables trick; however, on my production server, I believe I encountered this issue during a period of intermittent network connectivity. I have 3 jobs that are permanently "hung", and I know that they were attempting to send different messages at the time of my network outage. Other jobs that were running at the time were spewing exceptions which were originating in the Sender.post method (where the conn.getOutputStream() is called ) . Exceptions such as ConnectionReset, Remote Host closed connection during handshake, connection timed out, etc. So I believe that some combination of network trouble will cause this method to block or hang indefinitely. +1 for the suggested fix of set timeout values
from gcm.
This PR allows for the setting of connection timeout values. If this issue persists please submit an issue with more detail if possible.
from gcm.
Related Issues (20)
- Issue Regarding Notification Display. HOT 1
- com.google.android.gcm.server.Sender fix ip address for gcm push notification sender
- Not receiving notification on some Custom OS after reboot
- am not able to get notification in bar when app is opened
- Message.Builder().contentAvailable(true)
- GCM and Play Services GCM
- GCM Dry run gives mismatch http post response
- I am getting below error message, while connecting the gcm through proxy org.apache.http.client.ClientProtocolException
- java.lang.NullPointerException in com.google.android.gms.gcm.GcmListenerService.zzm
- GCM Not receiving push notification in Canada
- Delete
- GCM send calls are failing -Android https://android.googleapis.com/gcm/send (push notification) HOT 1
- Don't have new release with FCM update HOT 3
- UTF-8 support is not present on Server side FCM/GCM push HOT 1
- I forgot my email id from which, i have created GCM Sender id .any way to find email id
- Delay on GCM Push Notifications sent from salesforce server.
- How to know if the requests to GCM have stopped?
- It looks like the data is there, it is just parcelled. If you try to get a particular key/value it should show up. You can always do something like intent.getStringExtra("date") before logging the Intent to force its data to unparcel.
- Not allowed to bind to service Intent HOT 2
- Security Policy violation Binary Artifacts HOT 84
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcm.