tls-lwt: do not catch out of memory exception#469
Conversation
as discussed in mirleft#464 (thanks to @talex5 for raising this)
|
Sorry, that wasn't what I meant. Marking a flow as broken when you get Rather, I meant we want to be able to distinguish between:
|
|
Thanks for your comment @talex5, but I think the |
|
I agree that libraries shouldn't be suppressing What I don't like is having special cases (e.g. what about So, I think TLS should either store all unknown exceptions or none of them, and report it to the application in all cases. The main tricky case is
That's not a big problem. It's responding to an error in a complex operation (e.g. reading TLS data) by trying to perform a simpler one (e.g. marking the flow as failed). If that runs out of memory too, it will still get reported. |
CHANGES: * BREAKING: new opam package tls-lwt (formerly tls.lwt), in dune: (libraries tls.lwt) should now be libraries (tls-lwt) (mirleft/ocaml-tls#468 @hannesm, reported mirleft/ocaml-tls#449 by @mbacarella) * tls: update to mirage-crypto 0.11 API (mirleft/ocaml-tls#468 @hannesm) * tls: relax SignatureAlgorithms extension handling to allow OpenSSL interoperability tests with TLS 1.0 and TLS 1.1 (mirleft/ocaml-tls#469 @hannesm) * tls: remove Utils.filter_map and and Utils.option, use Stdlib instead (mirleft/ocaml-tls#455 @hannesm) * tls: do not globally open Utils (mirleft/ocaml-tls#455 @hannesm) * tls: export log source of Tracing module (mirleft/ocaml-tls#461 @bikallem) * tls: remove unused ciphersuites to reduce binary size (mirleft/ocaml-tls#467 @hannesm) * tls-lwt: do not catch out of memory exception (mirleft/ocaml-tls#469 @hannesm) * tls-eio: add fuzz testing using crowbar (mirleft/ocaml-tls#456 mirleft/ocaml-tls#463 @talex5) * tls-eio: update to eio 0.7 (mirleft/ocaml-tls#456 @talex5) * tls-eio: fix test for develop with vendoring (mirleft/ocaml-tls#462 @bikallem)
as discussed in #464 (thanks to @talex5 for raising this)