Use a bufio.Scanner in http listener

this will prevent potential very large allocations due to a very large
chunk size send from a client.

fixes #1823
This commit is contained in:
Cameron Sparr
2016-09-29 12:09:02 +01:00
parent ca8e512e5b
commit 78ced6bc30
3 changed files with 42 additions and 16 deletions

View File

@@ -41,6 +41,7 @@
- [#1137](https://github.com/influxdata/telegraf/issues/1137): Fix issue loading config directory on windows.
- [#1772](https://github.com/influxdata/telegraf/pull/1772): Windows remote management interactive service fix.
- [#1702](https://github.com/influxdata/telegraf/issues/1702): sqlserver, fix issue when case sensitive collation is activated.
- [#1823](https://github.com/influxdata/telegraf/issues/1823): Fix huge allocations in http_listener when dealing with huge payloads.
## v1.0.1 [unreleased]