Closed ahabersaat closed 1 year ago
const
variables as local variables inside the functions that use them should at least be a major improvement.This should be fixed now. All those global variables are now removed and turned into stack variables are needed.
Hello, I'm having issues when connecting to a Samba server on Ubuntu, with 2 clients started in parallel in 2 separate threads. The connection fails with:
Wrong signature in received PDU
. It mainly fails in a unit test, using a local Samba server (127.0.0.1), but I'm worried that it could fail in a similar way on a real app with a distant server.The code executed in the threads looks like that:
Then, I'm using the synchronous API to list and read/download filesin the different threads, however it fails before reaching that point.
I have seen that similar issue were raised before, but they seemed to be fixed? However I'm still getting it occasionaly on Linux (~30% of the runs). On Windows, I have not seen it yet, even when running the test 100x with 4 threads in parallel. But maybe the threads are not started as precisely on Windows as on Linux and thus avoid concurrent access.
Are there any known concurrency issue in the library that could make this connection fail?