Skip to content

Commit

Permalink
gluten-lwt-unix: use close-notify (#44)
Browse files Browse the repository at this point in the history
* gluten-lwt-unix: use close-notify

* flake.lock
  • Loading branch information
anmonteiro committed Sep 27, 2022
1 parent 31e5abf commit 4c1bea4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lwt-unix/ssl_io.real.ml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct
| _ ->
Lwt.catch
(fun () ->
Lwt_ssl.ssl_shutdown ssl >>= fun () ->
Lwt_ssl.close_notify ssl >>= fun _shutdown ->
Lwt.wrap2 Lwt_ssl.shutdown ssl Unix.SHUTDOWN_ALL >>= fun () ->
Lwt_ssl.close ssl)
(function
Expand Down

0 comments on commit 4c1bea4

Please sign in to comment.