Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Unable to connect from Google App Engine #37

Open
hexus opened this issue Sep 28, 2015 · 1 comment
Open

Unable to connect from Google App Engine #37

hexus opened this issue Sep 28, 2015 · 1 comment

Comments

@hexus
Copy link

hexus commented Sep 28, 2015

Hey folks, just thought I'd make you aware of an issue I found while working with this library.

This breaks in Google App Engine because of the hard-coded URIs in ZendService\Apple\Apns\Client\Message.

https://github.com/zendframework/ZendService_Apple_Apns/blob/master/library/ZendService/Apple/Apns/Client/Message.php#L33

The tls:// scheme causes Google App Engine to freak out, but changing them to ssl:// works fine.

I get an error like this:

stream_socket_client(): unable to connect to tls://gateway.push.apple.com:2195 (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?)

I imagine this is down to App Engine not supporting TLS or me failing to have found how to enable it.

Cheers.

Edit: https://cloud.google.com/appengine/docs/php/#PHP_Stream_support

Looks like it's not meant to support either, but magically works with SSL.

@mwillbanks
Copy link
Contributor

@hexus interesting, at one point they forced you to utilize tls, it looks now like they support ssl again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants