thriftpy2 icon indicating copy to clipboard operation
thriftpy2 copied to clipboard

Thrift IDL file parse reports error in multi-threaded situation

Open 1C4nfaN opened this issue 1 year ago • 0 comments

When my idl definition is more complex, I import idl files in multiple threads at the same time, and some exceptions will be thrown during the parser process.

Looking at the code, I found that the parser process does not seem to be thread-safe. If I want the code to work properly, I Add thread locks to my thread environment. I think a documentation tip may be needed here.

1C4nfaN avatar Jan 29 '24 02:01 1C4nfaN