experiment: buffered socket with 128k buffer size; not super needle-moving

This commit is contained in:
Christian Schwarz
2025-01-16 16:41:47 +01:00
parent 45358bcb65
commit 7e13e5fc4a

View File

@@ -284,6 +284,8 @@ async fn page_service_conn_main(
socket.set_timeout(Some(std::time::Duration::from_millis(socket_timeout_ms)));
let socket = Box::pin(socket);
let socket = tokio::io::BufStream::with_capacity(128<<10, 128<<10, socket);
fail::fail_point!("ps::connection-start::pre-login");
// XXX: pgbackend.run() should take the connection_ctx,