Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 55397 invoked from network); 7 Mar 2008 14:39:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2008 14:39:58 -0000 Received: (qmail 96729 invoked by uid 500); 7 Mar 2008 14:39:53 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 96709 invoked by uid 500); 7 Mar 2008 14:39:53 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 96700 invoked by uid 99); 7 Mar 2008 14:39:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 06:39:53 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [71.74.56.122] (HELO hrndva-omtalb.mail.rr.com) (71.74.56.122) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 14:39:03 +0000 Received: from DIEGO ([97.76.56.102]) by hrndva-omta04.mail.rr.com with ESMTP id <20080307143918.SWO18091.hrndva-omta04.mail.rr.com@DIEGO> for ; Fri, 7 Mar 2008 14:39:18 +0000 From: "Joe Fernandez" To: Subject: RE: "WARNING: Transport failed" ... org.apache.activemq.transport.failover.FailoverTransport handleTransportFailure Date: Fri, 7 Mar 2008 09:36:55 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: <47D1237B.8020301@gmail.com> Thread-Index: AciARGuD/zfEREvCTk+WfSZzC9+S0gAFFodQ Message-Id: <20080307143918.SWO18091.hrndva-omta04.mail.rr.com@DIEGO> X-Virus-Checked: Checked by ClamAV on apache.org The SO_TIMEOUT is a standard java.net.Socket option. When set to a non-zero value, the Socket read() call will block for only the amount of time specified. If the timeout expires, the SocketTimeoutException will get hurled, but the Socket connection should still be treated as active. A timeout of zero (default) instructs the read to block indefinitely. The maxInactivityDuration is an OpenWire option that is used for detecting dead sockets. There are cases where a Socket will never be notified that its peer has gone away (e.g., its machine has been powered off or disconnected from the net) so you implement something like maxInactivityDuration to determine for yourself that the Socket has died. There is also the SO_KEEPALIVE standard java.net.Socket option, which when set causes the underlying TCP stack to send a 'keepalive' probe to the remote peer system if the connection has been idle for a specified amount of time. The probe should provoke the peer to send back an ACK thus confirming that the connection is okay. If the ACK is not received, then it confirms the peer has gone away and the connection is dead. However, the keepalive doesn't always work and that is why you sometimes want to implement something more reliable (like maxInactivityDuration) at the application layer. Joe www.ttmsolutions.com > -----Original Message----- > From: Eric Rodriguez [mailto:toxicafunk@gmail.com] > Sent: Friday, March 07, 2008 6:14 AM > To: users@activemq.apache.org > Subject: Re: "WARNING: Transport failed" ... > org.apache.activemq.transport.failover.FailoverTransport > handleTransportFailure > > Is this timeout the same as the: > > soTimeout (long) sets the SO_TIMEOUT value (in milliseconds) on the socket > > configured on the TCP Transport and described here: > http://activemq.apache.org/activemq-3-transport-configurations.html > > I'm a bit confused about the different tiemouts that can be specified on > a JMS solution. > > Thanks, > Eric > > Andrew wrote: > > That's all it was. Thanks. > > > > -----Original Message----- > > From: James Strachan [mailto:james.strachan@gmail.com] > > Sent: Tuesday, March 04, 2008 1:06 AM > > To: users@activemq.apache.org > > Subject: Re: "WARNING: Transport failed" ... > > org.apache.activemq.transport.failover.FailoverTransport > > handleTransportFailure > > > > It looks like the socket failed - could be thebroker thinking the > > socket was inactive. You could try increasing or disabling the > > inactivity timeout. > > > > On 03/03/2008, Andrew wrote: > >> Anyone know why this would happen? Other clients connected > simultaneously > >> don't disconnect. Everything is on a simple LAN so no networking > issues > >> should exist for one client and not others.. > >> Thanks, > >> Andrew > >> > >> > >> > >> Mar 3, 2008 3:00:55 PM > >> org.apache.activemq.transport.failover.FailoverTransport > >> handleTransportFailure > >> WARNING: Transport failed, attempting to automatically reconnect due > to: > >> java.io.EOFException > >> java.io.EOFException > >> at java.io.DataInputStream.readInt(DataInputStream.java:375) > >> at > >> > > > org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java: > 26 > >> 8) > >> at > >> > > > org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.ja > va > >> :192) > >> at > >> > > > org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:184 > ) > >> at > >> > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:172) > >> at java.lang.Thread.run(Thread.java:619) > >> Mar 3, 2008 3:00:56 PM > >> org.apache.activemq.transport.failover.FailoverTransport$1 iterate > >> INFO: Successfully reconnected to tcp://tupolev:61616 > >> > >> Mar 3, 2008 3:01:56 PM > >> org.apache.activemq.transport.failover.FailoverTransport > >> handleTransportFailure > >> WARNING: Transport failed, attempting to automatically reconnect due > to: > >> java.io.EOFException > >> java.io.EOFException > >> at java.io.DataInputStream.readInt(DataInputStream.java:375) > >> at > >> > > > org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java: > 26 > >> 8) > >> at > >> > > > org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.ja > va > >> :192) > >> at > >> > > > org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:184 > ) > >> at > >> > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:172) > >> at java.lang.Thread.run(Thread.java:619) > >> Mar 3, 2008 3:01:56 PM > >> org.apache.activemq.transport.failover.FailoverTransport$1 iterate > >> INFO: Successfully reconnected to tcp://tupolev:61616 > >> > >> > >> > > > >