Descriptionnet/http: handle 413 responses more robustly
When HTTP bodies were too large and we didn't want to finish
reading them for DoS reasons, we previously found it necessary
to send a FIN and then pause before closing the connection
(which might send a RST) if we wanted the client to have a
better chance at receiving our error response. That was Issue 3595.
This issue adds the same fix to request headers which
are too large, which might fix the Windows flakiness
we observed on TestRequestLimit at:
http://build.golang.org/log/146a2a7d9b24441dc14602a1293918191d4e75f1
Patch Set 1 #Patch Set 2 : diff -r 422c00e8e022 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 422c00e8e022 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 723ce500dd2c https://go.googlecode.com/hg/ #MessagesTotal messages: 7
|