ICEfaces
  1. ICEfaces
  2. ICE-7426

Add ability to configure getRemoteHost()

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P03, 2.1-Beta2
    • Fix Version/s: 3.0.RC1, 3.0, EE-1.8.2.GA_P04
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Netscaler load balancer
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      When accessing an application through a Netscaler load balancer, there is a 4-5 second delay which looks to be caused by a call to getRemoteHost. We should provide a configurable mode where getRemoteHost() is not called and a String value for the IP address is used in its place.

        Issue Links

          Activity

          Tyler Johnson created issue -
          Tyler Johnson made changes -
          Field Original Value New Value
          Salesforce Case [5007000000JM3oV]
          Jack Van Ooststroom made changes -
          Assignee Jack van Ooststroom [ jack.van.ooststroom ]
          Jack Van Ooststroom made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Ken Fyten made changes -
          Assignee Priority P1
          Ken Fyten made changes -
          Fix Version/s 2.1 [ 10241 ]
          Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #26277 Tue Nov 08 07:48:54 MST 2011 jack.van.ooststroom Fixed JIRA ICE-7426 : Add ability to configure getRemoteHost()
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ThreadBlockingAdaptingServlet.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainSessionBoundServlet.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ServletRequestResponse.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainServlet.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/SessionVerifier.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ServletExternalContext.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/GlassFishAdaptingServlet.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/SessionDispatcher.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ServletEnvironmentRequest.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/BasicAdaptingServlet.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/EnvironmentAdaptingServlet.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/JettyAdaptingServlet.java
          Jack Van Ooststroom made changes -
          Link This issue depends on PUSH-150 [ PUSH-150 ]
          Hide
          Jack Van Ooststroom added a comment -

          To avoid the getRemoteHost() calls to be executed the newly introduced disableRemoteHostLookup context parameter can be used as follows depending on the ICEfaces version.

          ICEfaces 1.8:

          <context-param>
          <param-name>com.icesoft.faces.disableRemoteHostLookup</param-name>
          <param-value>true</param-value>
          </context-param>

          ICEfaces 2:

          <context-param>
          <param-name>org.icepush.disableRemoteHostLookup</param-name>
          <param-value>true</param-value>
          </context-param>

          Marking this one as FIXED.

          Show
          Jack Van Ooststroom added a comment - To avoid the getRemoteHost() calls to be executed the newly introduced disableRemoteHostLookup context parameter can be used as follows depending on the ICEfaces version. ICEfaces 1.8: <context-param> <param-name>com.icesoft.faces.disableRemoteHostLookup</param-name> <param-value>true</param-value> </context-param> ICEfaces 2: <context-param> <param-name>org.icepush.disableRemoteHostLookup</param-name> <param-value>true</param-value> </context-param> Marking this one as FIXED.
          Jack Van Ooststroom made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Affects [Documentation (User Guide, Ref. Guide, etc.)]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #26359 Tue Nov 15 08:36:27 MST 2011 jack.van.ooststroom Fixed JIRA ICE-7426 : Add ability to configure getRemoteHost()
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/push-server/src/org/icefaces/push/server/PushServlet.java
          Commit graph MODIFY /icefaces/trunk/icefaces/push-server/src/org/icefaces/push/server/SessionBoundServlet.java
          Ken Fyten made changes -
          Fix Version/s 3.0.RC1 [ 10300 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Ken Fyten made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Assignee Priority P1
          Ken Fyten made changes -
          Issue Type New Feature [ 2 ] Improvement [ 4 ]
          Ken Fyten made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Jack Van Ooststroom
              Reporter:
              Tyler Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: