FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: socketfactory not registered for apache by arithmetic1728 · Pull Request #1637 · googleapis/google-api-java-client · GitHub

fix: socketfactory not registered for apache - #1637

Merged
chingor13 merged 2 commits into
googleapis:masterfrom
arithmetic1728:master
Nov 16, 2020
Merged

fix: socketfactory not registered for apache#1637
chingor13 merged 2 commits into
googleapis:masterfrom
arithmetic1728:master

Conversation

arithmetic1728 commented Nov 13, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

For GoogleApacheHttpTransport, socketFactory has to be registered for https, and provided to connectionManager. This PR does the following:

  • register socket factory for http and https, and pass to connection manager (reference)
  • removed .setSSLSocketFactory(socketFactory) from the chain of calls after HttpClientBuilder.create(), since it will be overwritten by .setConnectionManager(connectionManager)

arithmetic1728 requested a review from a team November 13, 2020 07:49
google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 13, 2020

elharo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This could use a test.

Copy link
Copy Markdown
Contributor Author

This could use a test.

Refactored the code and added test.

chingor13 merged commit e886efa into googleapis:master Nov 16, 2020
gcf-merge-on-green Bot pushed a commit that referenced this pull request Nov 16, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL