mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
explicitly closing URLConnection inputstream as required by documentation (since we don't read it).
This commit is contained in:
parent
4d921448fe
commit
de80c7704b
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ public class ESExporter extends AbstractLifecycleComponent<ESExporter> implement
|
|||
if (conn.getResponseCode() != 201) {
|
||||
logger.error("Remote target didn't respond with 201 Created");
|
||||
}
|
||||
conn.getInputStream().close(); // close and release to connection pool.
|
||||
|
||||
} catch (IOException e) {
|
||||
logger.error("Error connecting to target", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue