jtv-apns 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/apns/core.rb +2 -2
- metadata +3 -3
data/lib/apns/core.rb
CHANGED
@@ -160,7 +160,7 @@ module APNS
|
|
160
160
|
ssl = OpenSSL::SSL::SSLSocket.new(sock, context)
|
161
161
|
ssl.connect
|
162
162
|
return ssl, sock
|
163
|
-
rescue
|
163
|
+
rescue SystemCallError
|
164
164
|
if (retries += 1) < 5
|
165
165
|
sleep 1
|
166
166
|
retry
|
@@ -226,7 +226,7 @@ module APNS
|
|
226
226
|
ssl.close
|
227
227
|
sock.close
|
228
228
|
end
|
229
|
-
rescue Errno::ECONNABORTED
|
229
|
+
rescue Errno::ECONNABORTED, Errno::EPIPE, Errno::ECONNRESET
|
230
230
|
if (retries += 1) < 5
|
231
231
|
self.remove_connection(host, port)
|
232
232
|
retry
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jtv-apns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Gebheim
|