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

Remove buoy #7

Merged
merged 1 commit into from
Apr 4, 2019
Merged

Remove buoy #7

merged 1 commit into from
Apr 4, 2019

Conversation

rkallos
Copy link
Owner

@rkallos rkallos commented Apr 3, 2019

This PR replaces buoy with httpc from the Erlang standard library.

In our current production environment, connections to Vault are closed after 1 minute. This would occasionally leave canal in a state where it would not be able to issue requests to Vault until the connection is reestablished. With httpc, new connections are opened with each request, and to my knowledge, don't last beyond the lifetime of the request. I expect this will fix the problem.

src/canal.erl Outdated
@@ -338,16 +315,15 @@ handle_read_response(

State2 = del_request(RequestId, State),
gen_server:reply(From, Ret),
{noreply, State2}.
{noreply, del_request(RequestId, State2)}.
Copy link

Choose a reason for hiding this comment

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

What is the purpose of this new del_request ?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I didn't see 2 lines up. State2 has the request deleted.

@rkallos rkallos merged commit fc8520a into master Apr 4, 2019
@rkallos rkallos deleted the upkeep/remove-buoy branch April 4, 2019 15:17
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.

2 participants