ToothlessGear / node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/ToothlessGear/node-gcm
Other
1.3k stars 206 forks source link

Avoid retry for 4xx HTTP status codes #196

Closed eladnava closed 8 years ago

eladnava commented 8 years ago

As per #145, added a check for 4xx status code responses, which are a result of a client error.

We should not retry requests that failed due to a client error, since we’d probably be making the same mistake again in the next request(s).

chris-rudmin commented 8 years ago

:+1:

hypesystem commented 8 years ago

Woop! :+1: