Solr
  1. Solr
  2. SOLR-1746

CommonsHttpSolrServer passes a ContentStream reader to IOUtils.copy, but doesnt close it.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4.1, 1.5, 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      IOUtils.copy will not close your reader for you:

                          @Override
                          protected void sendData(OutputStream out)
                              throws IOException {
                            IOUtils.copy(c.getReader(), out);
                          }
      

        Issue Links

          Activity

            People

            • Assignee:
              Mark Miller
              Reporter:
              Mark Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development