aboutsummaryrefslogtreecommitdiff
path: root/workerpool.go
diff options
context:
space:
mode:
authorGravatar Kevin Burns <kevburnsjr@gmail.com> 2019-10-27 00:29:20 -0700
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-10-27 15:29:20 +0800
commitf82a6460e9ce8483ea6216a97d30d57625b34076 (patch)
tree7ae2b08b2d9925aff854b88ced2fa2fd84704e16 /workerpool.go
parentfix: when multipartform no data,FormValue do not panic (#677) (diff)
downloadfasthttp-f82a6460e9ce8483ea6216a97d30d57625b34076.tar.gz
fasthttp-f82a6460e9ce8483ea6216a97d30d57625b34076.tar.bz2
fasthttp-f82a6460e9ce8483ea6216a97d30d57625b34076.zip
Requests with incomplete bodies no longer cause log noise (#682)
* #660 Incorrect content length * fix * unexpected EOF is expected * Prevent test from panicing should err ever be nil
Diffstat (limited to 'workerpool.go')
-rw-r--r--workerpool.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/workerpool.go b/workerpool.go
index bfd297c..84b1464 100644
--- a/workerpool.go
+++ b/workerpool.go
@@ -214,6 +214,7 @@ func (wp *workerPool) workerFunc(ch *workerChan) {
if wp.LogAllErrors || !(strings.Contains(errStr, "broken pipe") ||
strings.Contains(errStr, "reset by peer") ||
strings.Contains(errStr, "request headers: small read buffer") ||
+ strings.Contains(errStr, "unexpected EOF") ||
strings.Contains(errStr, "i/o timeout")) {
wp.Logger.Printf("error when serving connection %q<->%q: %s", c.LocalAddr(), c.RemoteAddr(), err)
}