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

Queue Resource Release #95

Closed
wants to merge 205 commits into from
Closed

Conversation

elbrujohalcon
Copy link
Member

Fixes #93 like sugus-seu#1
As @sugus-seu said:

When close a apns connection, the queue resource doesn't release,which leads to a lot of useless apns queue left in system that cannot be GC.
Add apns_queue:stop in apns_connection:terminate can fix it.

Brujo Benavides and others added 19 commits September 16, 2015 18:17
…n_feedback_fun

Add stack trace on error in feedback function
…_using_erlang_r16

Compile error using Erlang R16B02 (erts-5.10.3)
Fix compile error using gcc 5.2
Fix sync to use rustyio/sync instead of non-existing inaka/sync
…l_has_problem

apns_queue.erl has problem
When close a apns connection, the queue resource doesn't release,which leads to a lot of useless apns queue left in system that cannot be GC.
Add apns_queue:stop in apns_connection:terminate can fix it.
apes:connection(error_fun/2, feedback_fun/1).
apes:connection(error_fun/2, feedback_fun/1).
@@ -315,7 +315,8 @@ handle_info(Request, State) ->

%% @hidden
-spec terminate(term(), state()) -> ok.
terminate(_Reason, _State) -> ok.
terminate(_Reason, State=#state{queue = QID}) ->
Copy link
Member

Choose a reason for hiding this comment

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

According to Elvis:

Line 318 has 1 trailing whitespace characters.

@elbrujohalcon elbrujohalcon self-assigned this Dec 31, 2015
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.

Queue Resource Release