Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cudf_parser.from_file: prevent transient in_channel leaks
When from_file is used (differently from, e.g., from_in_channel), libcudf is in charge of creating an in_channel for parsing reasons. Its disposal will be up to the GC, non deterministically. Hence if from_file is used a lot, and if the GC kicks in late, users might run out of file descriptors. With this change Cudf_parser will store internally the in_channel it has open, if any, and close it upon Cudf_parser.close() Closes: #18789 Reference: https://gforge.inria.fr/tracker/?func=detail&atid=13811&aid=18789&group_id=4385
- Loading branch information