Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-3021

Http connection properties are not applied when SSL is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Critical
    • Resolution: Unresolved
    • 2.0.0, 1.6.0
    • 2.1.0
    • Server
    • None

    Description

      This is what we have now:

            HttpConfiguration httpConfig = new HttpConfiguration();
            httpConfig.setRequestHeaderSize( config.getHttpServerRequestHeaderBuffer() );
            httpConfig.setResponseHeaderSize( config.getHttpServerResponseHeaderBuffer() );
            httpConfig.setOutputBufferSize( config.getHttpServerResponseBuffer() );
      
      
            if (config.isSSLEnabled()) {
              HttpConfiguration httpsConfig = new HttpConfiguration( httpConfig );
              ...
              connector = new ServerConnector( server, sslContextFactory, new HttpConnectionFactory( httpsConfig ) );
            } else {
              connector = new ServerConnector( server );
            } 

      When SSL is not enabled, the previously created httpConfig is not set in the created ServerConnector instance. Therefore, those properties do not take effect in those clusters.

      Attachments

        Issue Links

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m