~cypheon/ecertmon

b4a31be79e652a155dbeaef5b952988919742a15 — Johann Rudloff 9 months ago 8ba2aff
Use timeout for TLS connection
1 files changed, 1 insertions(+), 1 deletions(-)

M src/cert_scanner.erl
M src/cert_scanner.erl => src/cert_scanner.erl +1 -1
@@ 64,7 64,7 @@ code_change(_OldVsn, State, _Extra) ->
%% logic
do_scan(State) ->
  Hostname = State#state.hostname,
  case ssl:connect(State#state.hostname, State#state.port, []) of
  case ssl:connect(State#state.hostname, State#state.port, [], 5000) of
  {ok, Socket} ->
      logger:debug("connection established: ~s:~p~n", [Hostname,
                                                       State#state.port]),