Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32F3A1181C for ; Thu, 24 Jul 2014 06:42:09 +0000 (UTC) Received: (qmail 17892 invoked by uid 500); 24 Jul 2014 06:42:08 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 17843 invoked by uid 500); 24 Jul 2014 06:42:08 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 17825 invoked by uid 99); 24 Jul 2014 06:42:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 06:42:08 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.172 as permitted sender) Received: from [209.85.223.172] (HELO mail-ie0-f172.google.com) (209.85.223.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 06:42:07 +0000 Received: by mail-ie0-f172.google.com with SMTP id lx4so1928113iec.31 for ; Wed, 23 Jul 2014 23:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Tla/hdYGknp6f8iuXUepFhlAE8clKAm8cGmScaYnGkQ=; b=cDiK2BeppJtlMrFYFQtv1TNBYwnGnhsqrzK7jH9sO8CxmV/AtsNPndeRYrGVmz6c+Z WYydINQb5CsZ+seJPngs0suj6SnwmxVzYzKA6CW1NtZibz5mo3lBSg8BzfHrQfOpN8h9 gBbeBjONbuiVLG6PWN7cnMPTyo2fNTeHUTsZSlMt0nXuBM+4K47JdOP8Uxu3fVFaQiQS V2+vLeVG87lxVX2robtOldudCWb+JZosgjwjsrGLZKX76p6qoCWbVUg52AWw7+1P39Hk e3L1F1a6TxZdsINw7Ej4rP5IqR59YDuSykfe+Jn0p/SPB7hDedKXg1KOtfDxTCDINO5P fbWg== X-Received: by 10.50.152.98 with SMTP id ux2mr36059714igb.27.1406184101820; Wed, 23 Jul 2014 23:41:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.11.67 with HTTP; Wed, 23 Jul 2014 23:41:21 -0700 (PDT) In-Reply-To: <1406145143490-5754314.post@n5.nabble.com> References: <1406145143490-5754314.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 24 Jul 2014 08:41:21 +0200 Message-ID: Subject: Re: Sockets getting closed after 200 seconds To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Maybe you have a firewall in between that closes inactive connections after X period of time. On Wed, Jul 23, 2014 at 9:52 PM, ashwin74268 wrote: > 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 > Classes. > 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 > connections. > 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:- > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:camel="http://camel.apache.org/schema/spring" > xmlns:cxf="http://cxf.apache.org/core" > xmlns:ccxf="http://camel.apache.org/schema/cxf" > xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration" > xmlns:osgi="http://www.springframework.org/schema/osgi" > xmlns:http-conf="http://cxf.apache.org/transports/http/configuration" > > xsi:schemaLocation=" http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.5.xsd > http://camel.apache.org/schema/osgi > http://camel.apache.org/schema/osgi/camel-osgi.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd > http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/cxf/camel-cxf.xsd > http://www.springframework.org/schema/osgi > http://www.springframework.org/schema/osgi/spring-osgi.xsd > http://cxf.apache.org/transports/http-jetty/configuration > http://cxf.apache.org/schemas/configuration/http-jetty.xsd > http://cxf.apache.org/transports/http/configuration > http://cxf.apache.org/schemas/configuration/http-conf.xsd > http://cxf.apache.org/core > http://cxf.apache.org/schemas/core.xsd > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd"> > > > > > > > > MaxRetransmits="1" > AllowChunking="false" /> > > > > > > > > > ..............<.....application specific bean definitions ...> > > xmlns="http://camel.apache.org/schema/spring"> > poolSize="100" maxPoolSize="100" maxQueueSize="1000" > rejectedPolicy="CallerRuns"/> > > > > > 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. > > > > > > 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: http://camel.465427.n5.nabble.com/Sockets-getting-closed-after-200-seconds-tp5754314.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/