Skip to content

Commit

Permalink
Merge pull request #89 from edwintorok/log-ssl-accept-error
Browse files Browse the repository at this point in the history
Log more details about SSL accept error
  • Loading branch information
vouillon committed Feb 9, 2016
2 parents ddee8bb + 8592b6c commit 1667bd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/ocsigen_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,11 @@ let rec wait_connection use_ssl port socket =
(fun e ->
Ocsigen_messages.unexpected_exception e
"Server.wait_connection (handle connection)";
(match e with
| Ssl.Accept_error(Ssl.Error_ssl|Ssl.Error_syscall) ->
Ocsigen_messages.warning
("Last SSL error: " ^ Ssl.get_error_string ())
| _ -> ());
return ())
>>= fun () ->
Lwt_log.ign_info ~section "** CLOSE";
Expand Down

0 comments on commit 1667bd6

Please sign in to comment.