Skip to content

Possible allocation and deallocation of the same statement at the same time #38

Closed
@codercms

Description

@codercms

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions