samiamim / apns-python-wrapper

Automatically exported from code.google.com/p/apns-python-wrapper
0 stars 0 forks source link

to openssl or not #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
since version 0.5, apns seems to try always openssl, even if the ssl module is 
available

I do not want to use openssl, as there seem to be problems with apple 
negotiation some times and I 
get hanging openssl porcesses

if I deinstall openssl on my debian, I get a 
APNSWrapper.apnsexceptions.APNSNoCommandFound 
exception

any hints?

Original issue reported on code.google.com by henrik.genssen@gmail.com on 19 May 2010 at 1:50

GoogleCodeExporter commented 9 years ago
Please, doublecheck that `force_ssl_command` argument is set to False.

Also please try
>> import ssl as ssl_module
from your python console and show me what you got

Original comment by klymys...@gmail.com on 19 May 2010 at 2:14

GoogleCodeExporter commented 9 years ago
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import ssl
>>> import ssl as ssl_module
>>>

ended with no error

and I am creating the objects like this:
wrapper = APNSNotificationWrapper(settings.APNS_CERT, False)
feedback = APNSFeedbackWrapper(settings.APNS_CERT, sandbox = False)

Original comment by henrik.genssen@gmail.com on 19 May 2010 at 3:53

GoogleCodeExporter commented 9 years ago
I installed / upgraded using:
easy_install --upgrade APNSWrapper

Original comment by henrik.genssen@gmail.com on 19 May 2010 at 4:21

GoogleCodeExporter commented 9 years ago
Try to use:
wrapper = APNSNotificationWrapper(certificate = settings.APNS_CERT, sandbox = 
False)
feedback = APNSFeedbackWrapper(certificate = settings.APNS_CERT, sandbox = 
False)

I've just tested it - it works fine.
Next thing - do you able to contact me via skype (my skype id is max.gabonsky)? 
It will be helpful for both us.

Original comment by klymys...@gmail.com on 19 May 2010 at 4:51

GoogleCodeExporter commented 9 years ago
as expected, no changes...
I am not on skype, sorry, but we could use jabber as you have jabber-account, 
too, here at google. 

Original comment by henrik.genssen@gmail.com on 19 May 2010 at 5:12

GoogleCodeExporter commented 9 years ago
This issue fixed in 0.6.1

Original comment by klymys...@gmail.com on 19 May 2010 at 8:28