From 0ecc7a80c145514b29f1a56124655261e986eb7b Mon Sep 17 00:00:00 2001 From: Yechan Bae Date: Sun, 12 Aug 2018 10:39:20 -0700 Subject: [PATCH] Do not ignore payload size in sync client (#194) --- src/sync/client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sync/client.rs b/src/sync/client.rs index 7494e6f..53db42f 100644 --- a/src/sync/client.rs +++ b/src/sync/client.rs @@ -106,7 +106,7 @@ impl Into for (reactor::Handle, Options) { #[cfg(feature = "tls")] fn into(self) -> FutureOptions { let (handle, options) = self; - let mut opts = FutureOptions::default().handle(handle); + let mut opts = FutureOptions::default().max_payload_size(options.max_payload_size).handle(handle); if let Some(tls_ctx) = options.tls_ctx { opts = opts.tls(tls_ctx); } @@ -115,8 +115,8 @@ impl Into for (reactor::Handle, Options) { #[cfg(not(feature = "tls"))] fn into(self) -> FutureOptions { - let (handle, _) = self; - FutureOptions::default().handle(handle) + let (handle, options) = self; + FutureOptions::default().max_payload_size(options.max_payload_size).handle(handle) } }