Skip to content

An improper locking bug(e.g., deadlock) on the lock server #183

@ycaibb

Description

@ycaibb

Hi, developers, thank you for your checking. It seems the lock server is not released correctly when !server->initialize in the function serverStop?

serverMutexLock(server);
if (!server->initialized) {
ews_printf("Warning: Server %p was never initialized and you tried to stop it. Ignoring...\n", server);
return;
}
server->shouldRun = false;
if (server->listenerfd != INVALID_SOCKET) {
close(server->listenerfd);
}
serverMutexUnlock(server);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions