camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashwin74268 <>
Subject Sockets getting closed after 200 seconds
Date Wed, 23 Jul 2014 19:52:23 GMT
Hi ,
I am running into a strange problem of sockets getting closed after exact
200seconds. My application is OSGI bases running with  servicemix ,
camel-cxf version 2.8-fuse-06-11. Routes are built using DSL in Java
A - Client
B - Server

1) Client is submiting the request(It re-uses at its end and sending us
COnnection:Keep-Alive) and it keeps on sending the request by re-using the
2) When there is no traffic for 200 seconds, the socket is closed by the
Server but Client is still assuming that socket is open as it has requested
to Keep-Alive connections. When Client send a new request  after 200 seconds
assuming the socket is still intact, it gets broken pipe exception and I can
see FIN/ACK in the tcpdumps at Server Side.
3) Server has routes configured to expose webservices and here is my spring
configuration file:-

<beans xmlns=""
	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-ws-security.xml" />
	<http-conf:conduit name="*.http-conduit">
    <http-conf:client Connection="Keep-Alive"
                      AllowChunking="false" />
	<httpj:engine-factory bus="cxf">
      <httpj:engine port="0">
        <httpj:threadingParameters minThreads="50" maxThreads="3000" />
   ..............<.....application specific bean definitions ...>

   <camelContext id="camelContext-service-sms" trace="true"
	<threadPoolProfile id="defaultThreadPoolProfile" defaultProfile="true"
			poolSize="100" maxPoolSize="100" maxQueueSize="1000"

With above configuration, http-conduit settings does seems to be making any
difference. I also tried setting  ReceiveTimeout="0" ConnectionTimeout="0" 
but that did not helped either.
Also tried to set http-conf:server parameters using below setting to honor
Keep-Alive HTTP connections.

<http-conf:destination name="*.http-destination">
		<http-conf:server HonorKeepAlive="true"/>

I looked at several posts on Camel, CXF but not sure what is wrong here.

Can anyone help me understand why the sockets are getting closed and how can
I configure my service endpoint/Jetty server to Keep-Alive connection
without getting timeout.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message