<div dir="ltr">Hi,<div><br></div><div>I have a process with a large thread pool. The threads occasionally make a GDAL call that in turn calls a PROJ function. From what I can tell, this causes the opening of a PROJ context that holds a handle/descriptor to the PROJ database. I believe that this file descriptor is held open in TLS until the thread is destroyed. This ends up keeping enough files open for my application that I run out of file descriptors.</div><div><br></div><div>Am I properly understanding the PROJ context behavior? Is there any way to force the deallocation of the PROJ context so that the file descriptor for the database can be closed?</div><div><br></div><div>Thanks,<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div></div></div>