Skip to content

Commit

Permalink
fix connection closed server log
Browse files Browse the repository at this point in the history
  • Loading branch information
StalderT authored and Pro committed Mar 29, 2018
1 parent d371053 commit c5ea046
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions plugins/ua_network_tcp.c
Expand Up @@ -664,15 +664,9 @@ ServerNetworkLayerTCP_listen(UA_ServerNetworkLayer *nl, UA_Server *server,
connection_releaserecvbuffer(&e->connection, &buf);
} else if(retval == UA_STATUSCODE_BADCONNECTIONCLOSED) {
/* The socket is shutdown but not closed */
if(e->connection.state != UA_CONNECTION_CLOSED) {
UA_LOG_INFO(layer->logger, UA_LOGCATEGORY_NETWORK,
"Connection %i | Closed by the client",
e->connection.sockfd);
} else {
UA_LOG_INFO(layer->logger, UA_LOGCATEGORY_NETWORK,
"Connection %i | Closed by the server",
e->connection.sockfd);
}
UA_LOG_INFO(layer->logger, UA_LOGCATEGORY_NETWORK,
"Connection %i | Closed",
e->connection.sockfd);
LIST_REMOVE(e, pointers);
CLOSESOCKET(e->connection.sockfd);
UA_Server_removeConnection(server, &e->connection);
Expand Down

0 comments on commit c5ea046

Please sign in to comment.