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

Even port and reservations #111

Merged
merged 4 commits into from
May 12, 2017
Merged

Even port and reservations #111

merged 4 commits into from
May 12, 2017

Conversation

arkgil
Copy link
Contributor

@arkgil arkgil commented May 11, 2017

This PR adds support for three additional options which may be passed to Client.allocate/2:

  • even_port: true which makes the client request even port without reservation
  • reserve: true which makes the client request even port with reservation
  • reservation_token: <token> which makes the client use previously obtained reservation token for the allocation

@arkgil arkgil requested review from erszcz and rslota May 11, 2017 15:55

test "returns valid allocate request with RESERVATION-TOKEN attribute" do
creds = CH.final()
token = <<0::8*8>> # token must be 8 bytes long
Copy link
Collaborator

Choose a reason for hiding this comment

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

There are spaces around operators most of the time, but not here.

@spec allocate_response_handler :: Transaction.handler
defp allocate_response_handler do
@spec allocate_response_handler(Client.allocate_opts) :: Transaction.handler
defp allocate_response_handler(opts) do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Function is too complex (ABC size is 35, max is 30).

@jerboabot
Copy link
Collaborator

Ebert has finished reviewing this Pull Request and has found:

  • 2 possible new issues (including those that may have been commented here).

You can see more details about this review at https://ebertapp.io/github/esl/jerboa/pulls/111.

@erszcz
Copy link
Member

erszcz commented May 12, 2017

I don't have any change requests or comments. Looks good 👍

@erszcz erszcz merged commit 2c14dff into master May 12, 2017
@erszcz erszcz deleted the even-port-and-reservations branch May 12, 2017 14:23
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