Merge pull request #69 from launchbadge/ab/pg-tls-fix

PgConnection: clear buffers after TLS upgrade
This commit is contained in:
Ryan Leckey 2020-01-16 13:33:46 -08:00 committed by GitHub
commit c82a8cc8f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,6 +389,8 @@ impl PgConnection {
_ => return Err(tls_err!("unknown `sslmode` value: {:?}", ssl_mode).into()),
}
self_.stream.clear_bufs();
self_.startup(&url).await?;
Ok(self_)