You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/09/02 14:43:28 UTC
[camel] branch master updated: CAMEL-13475: camel-olingo4 - Should
close http client when shutting down. Thanks to Remco Schoen for reporting.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 7afcd5d CAMEL-13475: camel-olingo4 - Should close http client when shutting down. Thanks to Remco Schoen for reporting.
7afcd5d is described below
commit 7afcd5ddecde511740b13867297835b752cb9d71
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Sep 2 16:43:07 2019 +0200
CAMEL-13475: camel-olingo4 - Should close http client when shutting down. Thanks to Remco Schoen for reporting.
---
.../org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java b/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java
index 9eb5d49..57a2432 100644
--- a/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java
+++ b/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/Olingo4AppImpl.java
@@ -31,6 +31,7 @@ import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import java.util.function.Consumer;
+
import org.apache.camel.component.olingo4.api.Olingo4App;
import org.apache.camel.component.olingo4.api.Olingo4ResponseHandler;
import org.apache.camel.component.olingo4.api.batch.Olingo4BatchChangeRequest;
@@ -38,6 +39,7 @@ import org.apache.camel.component.olingo4.api.batch.Olingo4BatchQueryRequest;
import org.apache.camel.component.olingo4.api.batch.Olingo4BatchRequest;
import org.apache.camel.component.olingo4.api.batch.Olingo4BatchResponse;
import org.apache.camel.component.olingo4.api.batch.Operation;
+import org.apache.camel.util.IOHelper;
import org.apache.camel.util.ObjectHelper;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.LineIterator;
@@ -228,7 +230,7 @@ public final class Olingo4AppImpl implements Olingo4App {
@Override
public void close() {
-
+ IOHelper.close(client);
}
@Override