Skip to content

Commit 1667bd6

Browse files
committed
Merge pull request #89 from edwintorok/log-ssl-accept-error
Log more details about SSL accept error
2 parents ddee8bb + 8592b6c commit 1667bd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/server/ocsigen_server.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,11 @@ let rec wait_connection use_ssl port socket =
992992
(fun e ->
993993
Ocsigen_messages.unexpected_exception e
994994
"Server.wait_connection (handle connection)";
995+
(match e with
996+
| Ssl.Accept_error(Ssl.Error_ssl|Ssl.Error_syscall) ->
997+
Ocsigen_messages.warning
998+
("Last SSL error: " ^ Ssl.get_error_string ())
999+
| _ -> ());
9951000
return ())
9961001
>>= fun () ->
9971002
Lwt_log.ign_info ~section "** CLOSE";

0 commit comments

Comments
 (0)