Skip to content

Commit

Permalink
[src] Print connection error info by the user buffer instead of the r…
Browse files Browse the repository at this point in the history
…eturn value of strerror_r() in Connecting
  • Loading branch information
Sigma711 committed Aug 28, 2023
1 parent aa99824 commit f2141e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connecting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void Connecting::DoWithError() const {
}
char errno_info[512];
auto tmp_ptr = ::strerror_r(saved_errno, errno_info, sizeof(errno_info));
LOG_ERROR("Fd(%d) gets an error -- %s!!!", Fd(), tmp_ptr);
LOG_ERROR("Fd(%d) gets an error -- %s!!!", Fd(), errno_info);
}

void Connecting::OnEstablishing() {
Expand Down

0 comments on commit f2141e9

Please sign in to comment.