Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-18052

pax-web-undertow does not use "max-connections" and "tcp-backlog" attributes for http-listener in ${KARAF_HOME}/etc/undertow.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • fuse-7.10-GA
    • Undertow
    • None
    • False
    • False
    • % %
    • Todo
    • Hide
      • modify ${KARAF_HOME}/etc/undertow.xml like this
        <http-listener name="http" socket-binding="http" max-connections="1" tcp-backlog="1"/>
        
      • start karaf runtime
      • By using JMX, check org.xnio:type=Xnio,provider="nio",worker="****",address="/0:0:0:0:0:0:0:0:8181" MBean's attribute, "connectionLimitHighWater"
        (currently I'm using debugger to cehck "backlog" for xnio)
      Show
      modify ${KARAF_HOME}/etc/undertow.xml like this <http-listener name="http" socket-binding="http" max-connections="1" tcp-backlog="1"/> start karaf runtime By using JMX, check org.xnio:type=Xnio,provider="nio",worker="****",address="/0:0:0:0:0:0:0:0:8181" MBean's attribute, "connectionLimitHighWater" (currently I'm using debugger to cehck "backlog" for xnio)

    Description

      Although user can set "max-connections" and "tcp-backlog" attributes for http-listener in ${KARAF_HOME}/etc/undertow.xml, pax-web-undertow does not use those attributes.

      Please check the implementation in org.ops4j.pax.web.service.undertow.internal.ServerControllerImpl.configureUndertow()
      method.

                  Server.HttpListener http = cfg.getSubsystem().getServer().getHttpListener();
      

      variable "http" has "max-connections" and "tcp-backlog" values correctly. However, those values are never used for Options.CONNECTION_HIGH_WATER nor Options.BACKLOG.

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            rhn-support-hfuruich Hisao Furuichi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: