Commit Graph

26 Commits

Author SHA1 Message Date
Basti Ortiz
aeb8fe0df0
Chore: remove unused futures crate for openssl and native-tls 2022-08-14 23:43:12 +08:00
Laurențiu Nicola
34d8b77644 Add feature gates for doctests 2021-09-25 20:04:41 +03:00
Petros Angelatos
ca6d4b8162 tokio-postgres: buffer sockets to avoid excessive syscalls
The current implementation forwards all read requests to the operating
system through the socket causing excessive system calls. The effect is
magnified when the underlying Socket is wrapped around a TLS
implementation.

This commit changes the underlying socket to be read-buffered by default
with a buffer size of 16K, following the implementation of the official
client.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-05-24 17:58:30 +02:00
Steven Fackler
eeee279277 Relese postgres-native-tls v0.5.0 2020-12-25 09:18:12 -05:00
Kirill Fomichev
5099799166
return used features 2020-12-01 19:03:02 +03:00
Steven Fackler
2689070d19 Upgrade to tokio 0.3 2020-10-17 09:49:45 -04:00
Steven Fackler
b4694471ad Add query_opt
Closes #510
2019-11-30 18:18:50 -05:00
Steven Fackler
12c2ef79b6 Upgrade to tokio 0.2/futures 0.3 2019-11-26 16:32:36 -08:00
Steven Fackler
dc9d07e246 Return a custom TlsStream rather than a ChannelBinding up front 2019-10-27 14:25:58 -07:00
Steven Fackler
ae230fb012 Release tokio-native-tls v0.3.0-alpha.1 2019-10-14 18:17:55 -07:00
Steven Fackler
c7055dc665 Clippy fixes 2019-10-09 15:20:23 -07:00
Steven Fackler
b8577b45b1 Overhaul query_portal 2019-10-08 17:22:56 -07:00
Steven Fackler
2517100132 Overhaul query
This is the template that we'll use for all other methods taking
parameters. The `foo_raw` variant is the most flexible (but annoying to
use), while `foo` covers the expected common case.
2019-10-08 17:15:41 -07:00
Steven Fackler
1473c09b83 Fix warnings 2019-10-08 16:45:48 -07:00
Steven Fackler
0d2d554122 Add a ToStatement trait in tokio-postgres 2019-10-08 19:36:24 -04:00
Steven Fackler
6c3a4ab192 Add channel_binding=disable/prefer/require to config
Closes #487
2019-09-24 17:03:37 -07:00
Steven Fackler
c456d2c09f Reenable postgres-native-tls 2019-08-30 14:15:03 -07:00
Steven Fackler
c026644820 async_await is stable on nightly now 2019-08-21 07:48:36 -04:00
Steven Fackler
3ed4543426 Don't block the reactor on DNS 2019-08-04 19:21:32 -07:00
Steven Fackler
59923bd425 Update postgres-native-tls 2019-08-02 21:03:54 -07:00
Steven Fackler
4cc18be35b Release postgres-native-tls v0.2.0-rc.1 2019-06-29 21:32:16 -07:00
Steven Fackler
e760d82f64 Drop tokio- prefix from TLS crates
They're way too wordy and used with both tokio-postgres and postgres
anyway.
2019-06-29 16:07:56 -07:00
Steven Fackler
14571ab029 Remove synchronous crate
It will be coming back! It's just going to involve a full rewrite and
removing it for now makes some of that restructuring easier.
2018-12-08 16:11:03 -08:00
Steven Fackler
08df4b330f Implement tls_server_end_point for postgres-native-tls 2018-07-07 21:18:41 -07:00
Steven Fackler
5c89b35785 Upgrade native-tls 2018-06-25 21:25:49 -07:00
Steven Fackler
c70a03f9e6 Split out TLS implementations
This provides a lot more flexibility around version support, and unlike
the ToSql/FromSql implementations, these don't actually need to be in
postgres itself.
2018-05-28 10:42:21 -07:00