- Регистрация
- 14.06.2025
- Сообщения
- 2
- Благодарностей
- 0
- Баллы
- 1
I’m experiencing a concurrency issue with my Zennoposter project. I’m currently testing the login process in parallel with 20 threads. I have a RabbitMQ database where I store IDs, usernames, and passwords. Each Zennoposter thread is supposed to check the database for a record, use those credentials to attempt a login, and then send back a callback with the corresponding IDs and the result of the attempt (successful or not).
The problem is that sometimes the IDs are getting mixed up. For instance, a thread might report a successful login for a set of credentials that shouldn’t be successful — or it might be sending back a callback with the wrong IDs. I suspect this happens because a thread may be accessing or affecting another thread’s browser instance instead of its own, causing a mix-up in the data.
The problem is that sometimes the IDs are getting mixed up. For instance, a thread might report a successful login for a set of credentials that shouldn’t be successful — or it might be sending back a callback with the wrong IDs. I suspect this happens because a thread may be accessing or affecting another thread’s browser instance instead of its own, causing a mix-up in the data.