I've a little micro webservice which stores messages locally identified by IDs. To ensure that files won't be written at the same time, I've implemented a queue. The following code works just once, a second file upload throws traceback below, I really don't know how to handle the fd correctly. I've a little micro webservice which stores mes