Skip to content

While working with thredds server, netcdf-c library creates thousands of /tmp/occookie* files #2184

@leonid-butenko

Description

@leonid-butenko

I have just realised that the library is not cleaning up the occookie files after connecting to thredds server. I'm quering quite big dataset and every call to the thredds server creates one or several zero-sized cookie file. I assume this is a bug. Pls advise...

Environment Information

  • What platform are you using? (please provide specific distribution/version in summary)
    • Linux
  • 32 and/or 64 bit?
    • 32-bit
    • 64-bit

Summary of Issue

The cookie file creation happens around here:

https://github.com/Unidata/netcdf-c/blob/main/oc2/ocinternal.c#L567

and never gets removed.

Steps to reproduce the behavior

Try to open a netcdf dataset by connecting to thredds server (for example with ncdump). And you will find this:

/tmp/occookiezD3vrm
/tmp/occookiegZGMds
/tmp/occookieBfj6pz
/tmp/occookiejOUpVk
/tmp/occookie2Itjag
/tmp/occookievGJTR0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions