Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3299

Guard the HstFreeMarkerServlet initialization against heavy initial concurrent usage

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.28.10
    • 2.28.11
    • None

    Description

      The HstFreeMarkerServlet provides a TagLibFactory instance which is saved and shared via the ServletContext between all requests.
      As this TagLibFactory is currently initialized during the first request, this can lead to race conditions if the servlet is hit by heavy concurrent initial usage (e.g. like with a benchmark).

      The TagLibFactory initialization however can just as well be done during the init phase of the servlet itself, which is synchronized by the container itself and thus no longer be subject to race conditions.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adouma Ate Douma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: