Open yyydevf opened 1 year ago
@yyydevf Thanks for reporting this :+1:
This indeed sounds like a bug, seems like we need some additional tests for this case to confirm. If this is a bug we then need some code adjustments. We're always happy about PRs, so if you want to take a closer look at this I'm always happy to help :+1:
I labeled this ticket as a question for now until we're sure this is a bug.
I can confirm this is indeed an issue.
Any news on this issue? Do you need help fixing this? The connection seems to hang until whatever timeout is reached rapidly exhausting connections until max MySQL connections are reached...
@pfk84 Help with this is always appreciated. In order to properly fix this we'd need a test to reproduce this behavior and then make the failing test green by fixing the reported issue. I looked into this before but didn't really found the cause of this. So I guess all I want to say here is: Pull request are welcome 😉
Hello
I have a bug in v 0.5. and v0.6.
While we have an invalid type of argument, we haven't drop current state of mysql, look at example, because exception does not catch
Look at this method: https://github.com/friends-of-reactphp/mysql/blob/c36b92f1ede95f49036b6ba1805736f80fa4d4e0/src/Io/Parser.php#L383
And its body (i do not know how to reply multiple lines of code, sorry, so paste my)
Exception line never catched and just reject: https://github.com/friends-of-reactphp/mysql/blob/89067b22fef892b90670722c20368a647c5b5fc6/src/Io/Query.php#L119 https://github.com/friends-of-reactphp/mysql/blob/89067b22fef892b90670722c20368a647c5b5fc6/src/Io/Connection.php#L72
So we are cannot send more queries from its connection, cause do not drop $this->currCommand