10000 C++ client leaks file descriptors on Windows · Issue #737 · aeron-io/aeron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
C++ client leaks file descriptors on Windows #737
Closed
@lukeocamden

Description

@lukeocamden

Hello, it looks like the non-Windows implementations of MemoryMappedFile::createNew and MemoryMappedFile::mapExisting close file decsriptors by creating OnScopeExit objects immediately after a successful open.

However these OnScopeExit objects are missing from the Windows implementations of MemoryMappedFile::createNew and MemoryMappedFile::mapExisting so the file descriptors are leaked. This means that a client will hold the files open throughout its lifetime, preventing them from being cleaned up.

If you agree, do you think it makes sense to add them?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0