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, } }