Skip to content

Commit fc9be79

Browse files
adameatPavelEfarinov
authored andcommitted
fix ssl error processing for gracefull close (ydb-platform#22638)
1 parent d89be3f commit fc9be79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ydb/library/actors/http/http_proxy_sock_impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ struct TSecureSocketImpl : TPlainSocketImpl, TSslHelpers {
198198
int err = SSL_get_error(Ssl.Get(), res); // SSL_get_error() must be used after each SSL_* operation
199199
switch(err) {
200200
case SSL_ERROR_NONE:
201+
case SSL_ERROR_SYSCALL:
201202
return res;
202203
case SSL_ERROR_WANT_READ:
203204
read = true;
@@ -206,7 +207,7 @@ struct TSecureSocketImpl : TPlainSocketImpl, TSslHelpers {
206207
write = true;
207208
return -EAGAIN;
208209
default:
209-
std::cerr << "(SSL_ERROR): " << ERR_error_string(ERR_get_error(), NULL) << std::endl;
210+
std::cerr << "(SSL_ERROR): " << err << " " << ERR_error_string(ERR_get_error(), NULL) << std::endl;
210211
return -EIO;
211212
}
212213
}

0 commit comments

Comments
 (0)