YARN-1703. Fixed ResourceManager web-proxy to close connections correctly. Contributed by Rohith Sharma.
This commit is contained in:
parent
9b860661a5
commit
198fb58776
|
@ -96,6 +96,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
YARN-2432. RMStateStore should process the pending events before close.
|
YARN-2432. RMStateStore should process the pending events before close.
|
||||||
(Varun Saxena via jianhe)
|
(Varun Saxena via jianhe)
|
||||||
|
|
||||||
|
YARN-1703. Fixed ResourceManager web-proxy to close connections correctly.
|
||||||
|
(Rohith Sharma via vinodkv)
|
||||||
|
|
||||||
Release 2.6.0 - 2014-11-18
|
Release 2.6.0 - 2014-11-18
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -166,6 +166,7 @@ public class WebAppProxyServlet extends HttpServlet {
|
||||||
}
|
}
|
||||||
config.setLocalAddress(localAddress);
|
config.setLocalAddress(localAddress);
|
||||||
HttpMethod method = new GetMethod(uri.getEscapedURI());
|
HttpMethod method = new GetMethod(uri.getEscapedURI());
|
||||||
|
method.setRequestHeader("Connection","close");
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Enumeration<String> names = req.getHeaderNames();
|
Enumeration<String> names = req.getHeaderNames();
|
||||||
while(names.hasMoreElements()) {
|
while(names.hasMoreElements()) {
|
||||||
|
|
Loading…
Reference in New Issue