From c2d8abcee71b5289fb483813fc3f22b5cdb9d876 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 2 Mar 2018 20:47:23 -0800 Subject: [PATCH] Fix disconnect on idle connections --- CHANGES.md | 2 ++ src/payload.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 383cc430e..5d3e172bf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,8 @@ * Add csrf middleware for filter for cross-site request forgery #89 +* Fix disconnect on idle connections + ## 0.4.1 (2018-03-01) diff --git a/src/payload.rs b/src/payload.rs index 3c0f41532..3cefcf718 100644 --- a/src/payload.rs +++ b/src/payload.rs @@ -168,7 +168,7 @@ impl Inner { len: 0, err: None, items: VecDeque::new(), - need_read: false, + need_read: true, } }