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

fix handling of some TLS options in Component configs #848

Closed
wants to merge 1 commit into from

Conversation

meejah
Copy link
Contributor

@meejah meejah commented Jun 8, 2017

No description provided.

@codecov-io
Copy link

codecov-io commented Jun 8, 2017

Codecov Report

Merging #848 into master will decrease coverage by 0.01%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #848      +/-   ##
==========================================
- Coverage   62.93%   62.91%   -0.02%     
==========================================
  Files          73       73              
  Lines       12512    12516       +4     
  Branches     1975     1976       +1     
==========================================
+ Hits         7874     7875       +1     
- Misses       3981     3984       +3     
  Partials      657      657
Impacted Files Coverage Δ
autobahn/wamp/component.py 45.64% <ø> (ø) ⬆️
autobahn/twisted/component.py 38.61% <20%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e69b314...5323b81. Read the comment docs.

@@ -193,7 +194,7 @@ def _create_transport_endpoint(reactor, endpoint_config):
if endpoint_config['type'] == 'tcp':

version = int(endpoint_config.get('version', 4))
host = str(endpoint_config['host'])
host = six.text_type(endpoint_config['host'])
Copy link
Contributor

Choose a reason for hiding this comment

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

actually, I think it would be much better not to coerce the type, but to raise if the user does not provide a string. no type coercions at all (we had that, and it was painful to remove again).

@oberstet
Copy link
Contributor

merged via #850

@oberstet oberstet closed this Jun 10, 2017
@meejah meejah deleted the tls-options-component branch June 30, 2017 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants