Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-592

LaxConnPool incorrectly notifies pool listener of lease on release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 5.0-beta8
    • 5.0-beta9
    • HttpCore
    • None

    Description

      The release method of LaxConnPool has a stray listener.onLease call that should not be there in the release method:

       

          public void release(final PoolEntry<T, C> entry, final boolean reusable) {
              ...
              final PerRoutePool<T, C> routePool = getPool(entry.getRoute());
              if (connPoolListener != null) {
                  connPoolListener.onLease(entry.getRoute(), this);
              }
              routePool.release(entry, reusable);
          }
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              linton.miller Linton Miller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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