rust-postgres/tokio-postgres
Steven Fackler 9d5a36e173 Only flush if necessary
If poll_write was blocked trying to write a request out to the socket,
it's because the write triggered a flush and the socket wasn't ready. We
don't want to try to flush again, since it's at best a waste of time and
at worst can cause a deadlock if the socket becomes available after the
poll_write and before the poll_flush. If that happens, we should be in
poll_write again writing more data but that wouldn't happen.
2018-06-18 22:49:53 -04:00
..
src Only flush if necessary 2018-06-18 22:49:53 -04:00
tests Working statement preparation 2018-06-18 22:34:25 -04:00
Cargo.toml Working statement preparation 2018-06-18 22:34:25 -04:00