explicitly closing URLConnection inputstream as required by documentation (since we don't read it).

This commit is contained in:
Boaz Leskes 2013-05-28 12:39:54 +02:00
parent 4d921448fe
commit de80c7704b

View file

@ -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);