asyncore is not thread safe and we are making a couple of calls from different threads than the event loop thread. I think this one and this one are all of them. I believe the solution is to add the functions that need to be called to a queue of callbacks which will be called from the asyncore loop.
I think this is pretty much tested already by the current tests here . In the endurance/workload tests for the next release we should place an emphasis in asyncore due to this change.
asyncore is not thread safe and we are making a couple of calls from different threads than the event loop thread. I think this one and this one are all of them.
I believe the solution is to add the functions that need to be called to a queue of callbacks which will be called from the asyncore loop.
Right now the calls alter the dispatcher_map in a undesirable way provoking https://datastax-oss.atlassian.net/browse/PYTHON-784