Skip to content

Deadlocks occur, at least in the SSDP handler threads #2

@vvdleun

Description

@vvdleun

While the program can run smoothly for months, from time to time the program seems to hang.

Some early investigation points to the SSDP handler as the cause. It has a clunky way to determine whether it should run or stay paused and it probably fails to detect that it needs to run from time to time. In certain situation it is never checked again whether its threads will need to run, so it can remain idle and never detect new devices on the network.

My current idea is to get rid of the Workers on the SSDP handler and just let the threads always run periodically. Since it knows which devices it has to detect, it can choose to do nothing each time it runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions