Skip to content

Commit

Permalink
Update tcp_connection.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 2, 2024
1 parent 71c86bd commit 95263df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/telemetry/connection/tcp_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ static int tcp_socket_try_connect(const std::string remote_ip, const int remote_
qDebug()<<"Cannot create socket"<<strerror(errno);
return -1;
}
#ifdef __linux__
if(fcntl(sockfd, F_SETFL, O_NONBLOCK)<0){
qDebug()<<"Cannot set non-blocking";
close(sockfd);
Expand Down

0 comments on commit 95263df

Please sign in to comment.