Oipo commented on a change in pull request #245:
URL: https://github.com/apache/celix/pull/245#discussion_r436589233
##########
File path: bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
##########
@@ -1266,9 +1269,12 @@ void pubsub_tcpHandler_handler(pubsub_tcpHandler_t *handle) {
}
pubsub_tcpHandler_close(handle, events[i].ident);
} else if (events[i].flags & EV_ERROR) {
+ celixThreadRwlock_unlock(&handle->dbLock);
L_ERROR("[TCP Socket]:EPOLLERR ERROR read from socket %s\n", strerror(errno));
pubsub_tcpHandler_close(handle, events[i].ident);
continue;
+ } else {
+ celixThreadRwlock_unlock(&handle->dbLock);
Review comment:
Hmm, I think the first unlock on line 1255 should be below what is now line 1257. I'll
have to check again if that is possible, or if I ran into some issues.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
|