Skip to content

Commit

Permalink
Add close/1 to gun_tls_proxy_cb to avoid undef crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Sep 12, 2022
1 parent 180ce23 commit 9afe027
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gun_tls_proxy_cb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-export([controlling_process/2]).
-export([send/2]).
-export([setopts/2]).
-export([close/1]).

%% The connect/4 function is called by the process
%% that calls ssl:connect/2,3,4.
Expand All @@ -35,3 +36,6 @@ send(Socket, Data) ->

setopts(Socket, Opts) ->
gun_tls_proxy:cb_setopts(Socket, Opts).

close(_) ->
ok.

0 comments on commit 9afe027

Please sign in to comment.