commit 8b30e45a42543cb275e00d9380d46163b6a567bf from: Aleksey Ryndin date: Fri Apr 19 09:34:47 2024 UTC Chek for tls_write returned 0 commit - 7b461c9d529526521fc9b28191606e09fc62010d commit + 8b30e45a42543cb275e00d9380d46163b6a567bf blob - abaf9220415ccb1456e534ce9d87711302b84516 blob + 76903d42f07e07e8a0ee8e39b465e147beb59913 --- vostok/transport.cc +++ vostok/transport.cc @@ -186,6 +186,11 @@ send( auto ret = tls_write(ctx, buff.begin(), buff.size()); if (ret == TLS_WANT_POLLIN || ret == TLS_WANT_POLLOUT) continue; + if (ret == 0) + { + error::occurred("Checking that TLS write did not return 0", PrintIfError{tls_error(ctx)}); + return false; + } if (ret == -1) {