You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/02/27 19:37:00 UTC

[jira] [Commented] (CAMEL-19097) Using Camel as a REST client towards a REST service hosted by JBoss EAP 7.4 leads to connections in TCP/IP state CLOSE_WAIT on the server side.

    [ https://issues.apache.org/jira/browse/CAMEL-19097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694149#comment-17694149 ] 

Claus Ibsen commented on CAMEL-19097:
-------------------------------------

Ask such questions on user mailing list or stackoverflow first.
Camel 2.25.x is EOL and not supported.

> Using Camel as a REST client towards a REST service hosted by JBoss EAP 7.4 leads to connections in TCP/IP state CLOSE_WAIT on the server side.
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-19097
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19097
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-http, camel-netty4-http
>    Affects Versions: 2.25.3
>            Reporter: Philipp Bachmann
>            Priority: Major
>
> Even though a similar / identical phenomenon has popped up both on [users@camel.apache.org|mailto:users@camel.apache.org] and at <https://stackoverflow.com/questions/53258874/http-and-https-connections-are-kept-in-close-wait-if-using-apache-camel>, I could not find a solution so far.
> To my understanding Camel as a REST client closes the connection, that's why the server's TCP/IP state switches to CLOSE_WAIT, but it should do so only temporarily until the server code also closes the respective connection. This, however, does not seem to happen, leaving its end of the connection in CLOSE_WAIT state "forever."
> We triggered the very same REST service using SoapUI as a REST client. In this case, the server correctly closes its end of the TCP/IP connection.
> So the Camel implementation seems to somehow contribute to this behavior of JBoss EAP, even though I'd still say that JBoss should reliably end its connection if the client already did so regardless of the details exchanged via this connection before, i. e. regardless of whether SoapUI or Camel was the client.
> So: 1) Are there known workarounds / additional URL endpoint parameters to set on the Camel side to avoid this behavior?
> 2) To further analyze what's really going on here it might prove useful to route the REST connection via a web proxy like mitmproxy. How can I do this with the least possible modifications to the respective Camel endpoint definition?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)