mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 23:35:20 +00:00
Merge pull request #69 from launchbadge/ab/pg-tls-fix
PgConnection: clear buffers after TLS upgrade
This commit is contained in:
commit
c82a8cc8f5
@ -389,6 +389,8 @@ impl PgConnection {
|
|||||||
_ => return Err(tls_err!("unknown `sslmode` value: {:?}", ssl_mode).into()),
|
_ => return Err(tls_err!("unknown `sslmode` value: {:?}", ssl_mode).into()),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self_.stream.clear_bufs();
|
||||||
|
|
||||||
self_.startup(&url).await?;
|
self_.startup(&url).await?;
|
||||||
|
|
||||||
Ok(self_)
|
Ok(self_)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user