You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Michael Shaw (JIRA)" <ji...@apache.org> on 2007/12/13 16:51:27 UTC

[jira] Commented: (AMQ-789) WireFormatNegotiator could hang a client or server connection if the peer disconnects before sending the wire format info

    [ https://issues.apache.org/activemq/browse/AMQ-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40839 ] 

Michael Shaw commented on AMQ-789:
----------------------------------

I think I might be seeing this in 4.1.1.  
2007-12-13 01:08:16,917 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - Thread-3 - Waking up reconnect task
2007-12-13 01:08:16,965 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - ActiveMQ Task - Attempting connect to: tcp://***.***.***.***:***?wireFormat.maxInactivityDuration=600000&soTi
meout=10000
2007-12-13 01:08:17,232 DEBUG [org.apache.activemq.transport.WireFormatNegotiator] - ActiveMQ Task - Sending: WireFormatInfo { version=2, properties={CacheSize=1024, CacheEnabled=true, SizePrefixDi
sabled=false, TcpNoDelayEnabled=true, MaxInactivityDuration=600000, TightEncodingEnabled=true, StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
2007-12-13 01:08:17,236 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - ActiveMQ Task - Connection established
2007-12-13 01:08:17,237 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - Thread-3 - Started.
2007-12-13 01:08:17,240 INFO [com.highergear.lead.jms.JMSFactoryConnectionUtil] - Thread-3 - Created Connection
... That's all it says for hours.

Upon restarting both broker and client:

2007-12-13 08:46:40,633 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - Thread-3 - Waking up reconnect task
2007-12-13 08:46:40,680 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - ActiveMQ Task - Attempting connect to: tcp://***.***.***.***:***?wireFormat.maxInactivityDuration=600000&soTi
meout=10000
2007-12-13 08:46:40,955 DEBUG [org.apache.activemq.transport.WireFormatNegotiator] - ActiveMQ Task - Sending: WireFormatInfo { version=2, properties={CacheSize=1024, CacheEnabled=true, SizePrefixDi
sabled=false, TcpNoDelayEnabled=true, MaxInactivityDuration=600000, TightEncodingEnabled=true, StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
2007-12-13 08:46:40,959 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - ActiveMQ Task - Connection established
2007-12-13 08:46:40,961 DEBUG [org.apache.activemq.transport.failover.FailoverTransport] - Thread-3 - Started.
2007-12-13 08:46:40,963 INFO [com.highergear.lead.jms.JMSFactoryConnectionUtil] - Thread-3 - Created Connection
2007-12-13 08:46:40,999 DEBUG [org.apache.activemq.transport.WireFormatNegotiator] - ActiveMQ Transport: tcp:///***.***.***.***:*** - Received WireFormat: WireFormatInfo { version=2, properties={Cache
Size=1024, CacheEnabled=true, SizePrefixDisabled=false, TcpNoDelayEnabled=false, MaxInactivityDuration=600000, TightEncodingEnabled=false, StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
2007-12-13 08:46:41,001 DEBUG [org.apache.activemq.transport.WireFormatNegotiator] - ActiveMQ Transport: tcp:///***.***.***.***:*** - tcp:///***.***.***.***:*** before negotiation: OpenWireFormat{version
=2, cacheEnabled=false, stackTraceEnabled=false, tightEncodingEnabled=false, sizePrefixDisabled=false}
2007-12-13 08:46:41,001 DEBUG [org.apache.activemq.transport.WireFormatNegotiator] - ActiveMQ Transport: tcp:///***.***.***.***:*** - tcp:///***.***.***.***:*** after negotiation: OpenWireFormat{version=
2, cacheEnabled=true, stackTraceEnabled=true, tightEncodingEnabled=false, sizePrefixDisabled=false}
2007-12-13 08:46:41,158 INFO [com.highergear.lead.jms.JMSFactoryConnectionUtil] - Thread-3 - Started Connection

The WireFormatNegotiation is not completing and no timeout occurs that allows the client to recognize the connection is bad.


> WireFormatNegotiator could hang a client or server connection if the peer disconnects before sending the wire format info
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-789
>                 URL: https://issues.apache.org/activemq/browse/AMQ-789
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Hiram Chirino
>            Assignee: Hiram Chirino
>             Fix For: 4.0.2, 4.1.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.