Mercurial Hosting > luan
changeset 898:39c12b2306a2
remove _useDNS
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 06 Oct 2016 23:57:43 -0600 |
parents | 821e4634b787 |
children | 3abf945c33e3 |
files | src/org/eclipse/jetty/server/AbstractHttpConnection.java src/org/eclipse/jetty/server/Connector.java src/org/eclipse/jetty/server/Request.java |
diffstat | 3 files changed, 0 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java Thu Oct 06 23:52:53 2016 -0600 +++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java Thu Oct 06 23:57:43 2016 -0600 @@ -271,15 +271,6 @@ /* ------------------------------------------------------------ */ /** - * @return <code>false</code> (this method is not yet implemented) - */ - public boolean getResolveNames() - { - return _connector.getResolveNames(); - } - - /* ------------------------------------------------------------ */ - /** * @return Returns the request. */ public Request getRequest()
--- a/src/org/eclipse/jetty/server/Connector.java Thu Oct 06 23:52:53 2016 -0600 +++ b/src/org/eclipse/jetty/server/Connector.java Thu Oct 06 23:57:43 2016 -0600 @@ -64,7 +64,6 @@ public final int port; private int _acceptors = 1; private int _acceptorPriorityOffset = 0; - private boolean _useDNS; protected int _maxIdleTime = 200000; protected int _lowResourceMaxIdleTime = -1; @@ -348,18 +347,6 @@ { } - /* ------------------------------------------------------------ */ - public boolean getResolveNames() - { - return _useDNS; - } - - /* ------------------------------------------------------------ */ - public void setResolveNames(boolean resolve) - { - _useDNS = resolve; - } - public int getRequestBufferSize() { return _buffers.getRequestBufferSize();
--- a/src/org/eclipse/jetty/server/Request.java Thu Oct 06 23:52:53 2016 -0600 +++ b/src/org/eclipse/jetty/server/Request.java Thu Oct 06 23:57:43 2016 -0600 @@ -155,7 +155,6 @@ private CookieCutter _cookies; private boolean _cookiesExtracted = false; private DispatcherType _dispatcherType; - private boolean _dns = false; private EndPoint _endp; private boolean _handled = false; private int _inputState = __NONE; @@ -691,8 +690,6 @@ { if (_endp == null) return null; - if (_dns) - return _endp.getLocalHost(); String local = _endp.getLocalAddr(); if (local != null && local.indexOf(':') >= 0) @@ -887,14 +884,6 @@ */ public String getRemoteHost() { - if (_dns) - { - if (_remoteHost != null) - { - return _remoteHost; - } - return _endp == null?null:_endp.getRemoteHost(); - } return getRemoteAddr(); } @@ -1520,7 +1509,6 @@ _connection = connection; _async.setConnection(connection); _endp = connection.getEndPoint(); - _dns = connection.getResolveNames(); } /* ------------------------------------------------------------ */