Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6781

Not closing URLConnection in ProductionModeClasspathFile might lead to too many open files

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.4.9
    • Fix Version/s: 5.4.10, 5.5
    • Component/s: None
    • Labels:
      None
    • Release notes required:
      Yes
    • Documentation update required:
      Yes
    • Sprint:
      Basel 62
    • Story Points:
      2
    • Magnolia Release:
      5.4.10, 5.5

      Description

      Calls to info.magnolia.resourceloader.classpath.service.impl.production.ProductionModeClasspathFile#getLastModified() currently do not close the URLConnection necessary to determine the last modification date. We should at least close the connection (see info.magnolia.resourceloader.classpath.service.impl.devmode.DevelopmentModeClasspathFile#getLastModified()) and possibly only check the date once.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apchelintcev Aleksandr Pchelintcev
                Reporter:
                pmundt Philip Mundt
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: