#563·sqlx

Mysql failure while dropping a future in the middle of reading or writing to the stream.

Author: antializeCreated Jul 26, 2020Updated Sep 28, 2026

I have implemented a web backend using sqlx, when running requests one at a time, everything works fine, but when multiple requests run concurently it causes A panic within the mysql part in sqlx.

thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/jakobt/.cargo/git/checkouts/sqlx-f05f33ba4f5c3036/eba6f39/sqlx-core/src/mysql/connection/stream.rs:152:12

I currently cannot compile agains master so the bug is against https://github.com/antialize/sqlx/commit/908279f84e1f013dcb04659b5f9f6bc884fbdc92, this is just head of master with an additional symbol exposed.