apns:close_connection don't closed h2_connect
Closed this issue · 2 comments
boboxiaodd commented
apns4erl/src/apns_connection.erl
Line 219 in 7be3493
i modify apns_connect.erl and fixed this issues.
handle_cast(stop, #{http2_connection := HTTP2Conn} = State) ->
h2_client:stop(HTTP2Conn),
{stop, normal, State};
by the way , i use chatterbox 0.7.0 ,and it replace gen_fsm to gen_statem
ferigis commented
Hi @boboxiaodd , thanks for the fix. Could you please raise a PR with your fix?
boboxiaodd commented
sorry @ferigis i don't know how to do it.
i use apns:close_connection every 10min ,and use apns:connect a new h2_connect
to solve chatterbox's memory leak