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 retries for ports that are in use (closes #38) #62

Merged
merged 1 commit into from Aug 27, 2019
Merged

Fix retries for ports that are in use (closes #38) #62

merged 1 commit into from Aug 27, 2019

Conversation

pmeinhardt
Copy link
Contributor

@pmeinhardt pmeinhardt commented Aug 26, 2019

Fixes: #38

Previously, no exception was thrown if the server port was already in
use. Therefore, the port assignment code in zign.api did not work as
expected.

Disallowing address re-use in zign.oauth2.ClientRedirectServer fixes
this behavior.

Additional changes:

  • Fix or ignore flake8 issues
  • Add test for zign.oauth2 module

@pmeinhardt
Copy link
Contributor Author

@hjacobs, the Travis CI setup seems to be broken. It's complaining about code I didn't even touch.

The setup.py doesn't specify an exact version for flake8, so my guess is that should be fixed or reported issues need to be fixed if you really always want to use the latest version of these tools. This'd be somewhat understandable but also make contributions harder 😐

@coveralls
Copy link

coveralls commented Aug 26, 2019

Coverage Status

Coverage increased (+0.3%) to 83.742% when pulling 1411d43 on bitcrowd:bug/38-existing-port-binding-is-not-always-respected-when-choosing-a-local-port into 1016b1a on zalando-stups:master.

Previously, no exception was thrown if the server port was already in
use. Therefore, the port assignment code in `zign.api` did not work as
expected.

Disallowing address re-use in `zign.oauth2.ClientRedirectServer` fixes
this behavior.

Additional changes:

- Fix or ignore flake8 issues
- Add test for zign.oauth2 module
@mikkeloscar
Copy link
Member

👍

1 similar comment
@pmeinhardt
Copy link
Contributor Author

👍

@mikkeloscar mikkeloscar merged commit 920b045 into zalando-stups:master Aug 27, 2019
@pmeinhardt pmeinhardt deleted the bug/38-existing-port-binding-is-not-always-respected-when-choosing-a-local-port branch August 27, 2019 11:54
@pmeinhardt
Copy link
Contributor Author

Do you have an idea when these changes will be released? 👋 🙂

@hjacobs
Copy link
Contributor

hjacobs commented Aug 28, 2019

@pmeinhardt released as 1.2: https://pypi.org/project/stups-zign/

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.

Existing port binding is not always respected when choosing a local port.
4 participants