Skip to content

ServerStreamPool.ConnectionLoop prevents shutdown #66

@philippseith

Description

@philippseith

I recently forgot to dispose a NamedPipeServer in my applications shutdown logic. Because the ServerStreamPool.ConnectionLoop is not started as a background thread, the application did not end.
I understand that it is good practice to dispose disposable objects on shutdown, but I wonder if this is really necessary in this case. Is there a reason why ServerStreamPool.ConnectionLoop is not a background thread?

See

var thread = new Thread(ConnectionLoop);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions