Commons JCS
  1. Commons JCS
  2. JCS-91

JCS fails to properly dispose of the lateral TCP listener thread. If a webapp that uses JCS lateral TCP cache is undeployed, the listener is left hanging with no hope for exit.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: jcs-1.3
    • Fix Version/s: jcs-2.0-beta-1
    • Component/s: TCP Lateral Cache
    • Labels:
      None

      Description

      The problem seems to stem from two things: improper handling of accept() such that it doesn't block indefinitely (and thus can't be interrupted and broken out of), and failure by the nowait facade to pass on dispose() events to the local TCP listener.

      I'll attach a patch to fix the former, although I feel that if 1.4 will use nio instead of regular IO, this will be moot. However, the latter (failure of the nowait facade to pass on disposal events) will probably still be an issue.

        Activity

        Diego Rivera created issue -
        Diego Rivera made changes -
        Field Original Value New Value
        Attachment jcs-91-fix.patch [ 12512331 ]
        Diego Rivera made changes -
        Attachment jcs-91-full-fix.patch [ 12514801 ]
        Diego Rivera made changes -
        Attachment jcs-91-fix.patch [ 12512331 ]
        Thomas Vandahl made changes -
        Assignee Thomas Vandahl [ tv ]
        Thomas Vandahl made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s jcs-2.0.0 [ 12312535 ]
        Resolution Fixed [ 1 ]
        Thomas Vandahl made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Thomas Vandahl
            Reporter:
            Diego Rivera
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4h
              4h
              Remaining:
              Remaining Estimate - 4h
              4h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development