inaka / apns4erl

Apple Push Notification Server for Erlang
http://inaka.github.com/apns4erl
370 stars 216 forks source link

spawned process to handle the connection crashes sometimes #105

Open ehelaya opened 8 years ago

ehelaya commented 8 years ago

Hi, I have successfully integrated apns4erl with our application and it's working fine, but some times below crash is happening and some APNs messages will not be sent because of the crash.

gen_server my_apns_connection terminated with reason: {error,closed} 09:37:53.977 [error] CRASH REPORT Process my_apns_connection with 1 neighbours exited with reason: {error,closed} in gen_server:terminate/7 line 826 09:37:53.978 [error] Supervisor apns_sup had child undefined started with apns_connection:start_link(my_apns_connection, {apns_connection,"gateway.push.apple.com",2195,undefined,"priv/certs/ios_privkey.pem",...}) at <0.6600.18> exit with reason {error,closed} in context child_terminated

I have investigate many in many ways, but couldn't find any clue, any Ideas?

Thanks, udaya.

elbrujohalcon commented 8 years ago

Maybe related to #104 ?

ehelaya commented 8 years ago

@elbrujohalcon sorry my bad I should have checked the issues first, i'll try this and let you know thanks.