Skip to content

Commit f6879f7

Browse files
authored
Merge pull request #514 from bonitoo-io/issue_513
fix issue #513 : Response body must be closed properly in case of JSON response
2 parents 24c5542 + 494c924 commit f6879f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/influxdb/impl/InfluxDBImpl.java

+2
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ public void process(final ResponseBody chunkedBody, final Consumer<QueryResult>
842842
QueryResult queryResult = new QueryResult();
843843
queryResult.setError("DONE");
844844
consumer.accept(queryResult);
845+
} finally {
846+
chunkedBody.close();
845847
}
846848
}
847849
}

0 commit comments

Comments
 (0)