Hello! I'm inspired by your great work and ported this client from AmPHP to Swoole.
I'm faced a strange behavior. There is no any synchronization between statement allocation and deallocation, and with high concurrency this may lead to the same statement is being allocated and deallocated at the same time.
I can't reproduce this behavior within tests, but in real workload, eg. ab -n1000 -c100 http://your-endpoint it can be reproduced.
If it will be helpful - I fixed this issue in my port PR.
Hello! I'm inspired by your great work and ported this client from AmPHP to Swoole. I'm faced a strange behavior. There is no any synchronization between statement allocation and deallocation, and with high concurrency this may lead to the same statement is being allocated and deallocated at the same time.
I can't reproduce this behavior within tests, but in real workload, eg. ab -n1000 -c100 http://your-endpoint it can be reproduced.
If it will be helpful - I fixed this issue in my port PR.