Skip to content

Commit

Permalink
fix: add log when call bind fail
Browse files Browse the repository at this point in the history
Signed-off-by: HappyUncle <[email protected]>
  • Loading branch information
happy-v587 committed Jul 9, 2024
1 parent 63c4d22 commit a5a6845
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/listen_socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ bool ListenSocket::Bind() {

int ret = ::bind(Fd(), reinterpret_cast<struct sockaddr *>(&serv), sizeof serv);
if (0 != ret) {
fprintf(stderr, "Err: %s\n", strerror(errno));
Close();
return false;
}
Expand Down

0 comments on commit a5a6845

Please sign in to comment.