Bug 828888
| Summary: | Proxy should behave correctly when removing Transfer-Encoding: chunked | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Miroslav Suchý <msuchy> |
| Component: | Proxy Server | Assignee: | Jan Pazdziora (Red Hat) <jpazdziora> |
| Status: | CLOSED NOTABUG | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 1.8 | CC: | jpazdziora, ppisar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 824140 | Environment: | |
| Last Closed: | 2013-03-08 14:29:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 824140 | ||
| Bug Blocks: | 1484117 | ||
|
Description
Miroslav Suchý
2012-06-05 14:29:36 UTC
Why not just specifying the content-length? So, looking at the current code:
proxy/proxy/rhnShared.py: _forwardHTTPHeaders
if (k == 'transfer-encoding') and ('chunked' in v):
log_debug(5, "Filtering header", k, v)
continue
is called from
proxy/proxy/rhnShared.py: _forwardServer2Client
self._forwardHTTPHeaders(bodyFd, self.req)
and that one is called only from
def _clientCommo(self, status=apache.OK):
""" Handler part 3
Forward server's response to the client.
"""
log_debug(1)
try:
self._forwardServer2Client()
except IOError:
# Raised by HTTP*connection.getresponse
# Client closed connection on us, no need to mail out a traceback
Traceback("SharedHandler._clientCommo", self.req, mail=0)
return apache.HTTP_SERVICE_UNAVAILABLE
# Close all open response contexts.
self.responseContext.clear()
return status
And that self.responseContext.clear seems to close all the filehandles eventually.
I assume the "So far, it seems so." still holds and this whole bugzilla was about checking that we don't miss anything. Closing as NOTABUG, please reopen if you disagree.
This BZ closed some time during 2.5, 2.6 or 2.7. Adding to 2.7 tracking bug. |