You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/07/26 09:35:57 UTC
[Bug 61086] Some clients hang when HTTP responses give status 205
Reset Content
https://bz.apache.org/bugzilla/show_bug.cgi?id=61086
Alexandr Saperov <mt...@yandex.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #3 from Alexandr Saperov <mt...@yandex.ru> ---
Still reproducable on 8.5.16-19.
org.apache.coyote.http11.Http11Processor
...
1129 entityBody = false;
1130 contentDelimitation = true;
1131 if (statusCode == 205) {
1132 // RFC 7231 requires the server to explicitly signal an empty
1133 // response in this case
1134 response.setContentLength(0);
1135 }
...
1166 if (!entityBody) {
1167 response.setContentLength(-1);
1168 }
Explicitly setting contentLength(0) in 1134 overrides by 1167, so response
doesn't contain Content-Length header.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org