Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uses guzzle StreamHandler by default [AppEngine only] #715

Merged

Conversation

bshaffer
Copy link
Contributor

This is required for AppEngine calls to a succeed, otherwise the connection error Curl Errno 7 is thrown.

We could only do this for when isAppEngine is true, but I'm a fan of as few conditional checks as possible. Are there any downsides to defaulting to this StreamHandler over Curl?

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 28, 2015
@bshaffer
Copy link
Contributor Author

advantages: does not require curl.so, runs on appengine
disadvantages: ??

@bshaffer bshaffer force-pushed the switch-to-stream-handler-by-default branch from 1c07ef1 to d32b7de Compare November 2, 2015 21:24
@bshaffer bshaffer changed the title uses guzzle StreamHandler by default uses guzzle StreamHandler by default [AppEngine only] Nov 2, 2015
@bshaffer bshaffer force-pushed the switch-to-stream-handler-by-default branch from d32b7de to 4d21613 Compare November 2, 2015 21:25
bshaffer added a commit that referenced this pull request Nov 3, 2015
…ault

uses guzzle StreamHandler by default [AppEngine only]
@bshaffer bshaffer merged commit 916ceae into googleapis:master Nov 3, 2015
@bshaffer bshaffer deleted the switch-to-stream-handler-by-default branch November 3, 2015 00:36
@tmatsuo
Copy link

tmatsuo commented Nov 3, 2015

Seems like App Engine now supports cURL:
https://cloud.google.com/appengine/docs/php/#PHP_cURL_support

Have you tried that?

@tmatsuo
Copy link

tmatsuo commented Nov 3, 2015

Sorry, apparently you tried them. I think we should make it (App Engine cURL support) work also.

@bshaffer
Copy link
Contributor Author

bshaffer commented Nov 3, 2015

@tmatsuo yes, AppEngine supports cURL, but I was unable to get this library to work even so. I agree it would be better to fix the issue, but this is a good solution in the interim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants