Skip to content

File descriptor leaks lead to dysfunctional app #24

Description

@marthjod

Reproduce:

Run nodejs app.js and watch lsof -p <PID of app.js> | wc -l increase with every gallery refresh. When the number of open file descriptors exceeds ulimit -n, app.js will stop working with, e.g.

{"message":"File not found","error":null}
{"message":"File not found","error":{"errno":20,"code":"EMFILE","path":"resources/photos/studio-2015/IMG_7795.JPG"}}
{"message":"No album found","error":{"errno":20,"code":"EMFILE","path":"./resources/photos/studio-2015"}} 

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