Skip to content

Commit

Permalink
Opt ssl read log
Browse files Browse the repository at this point in the history
  • Loading branch information
chenBright committed Nov 21, 2023
1 parent 806f4d4 commit c77d752
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/brpc/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2066,8 +2066,10 @@ ssize_t Socket::DoRead(size_t size_hint) {
<< ": " << SSLError(e);
errno = ESSL;
} else {
// System error with corresponding errno set
PLOG(WARNING) << "Fail to read from ssl_fd=" << fd();
// System error with corresponding errno set.
PLOG_IF(WARNING, ssl_error != SSL_ERROR_ZERO_RETURN &&
ssl_error != SSL_ERROR_SYSCALL)
<< "Fail to read from ssl_fd=" << fd();
}
break;
}
Expand Down

0 comments on commit c77d752

Please sign in to comment.