Skip to content

Rotation with zip leaved file descriptors open (on Windows) #261

Open
@Apollon77

Description

@Apollon77

I have reports that on Windows it seems that file descriptors are not correctly closed for the "oldFile" when packing, see ioBroker/ioBroker.js-controller#578

My assumption is that in https://github.com/winstonjs/winston-daily-rotate-file/blob/master/daily-rotate-file.js#L120 the ReadStream stays open somehow ...

I currently have one use testing if an explicite "inp.destroy()" helps ... if yes I will create an PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions