mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@440541 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2bdded210e
commit
937de5bd11
|
@ -565,7 +565,7 @@ final public class OpenWireFormat implements WireFormat {
|
|||
if( preferedWireFormatInfo==null )
|
||||
throw new IllegalStateException("Wireformat cannot not be renegotiated.");
|
||||
|
||||
this.setVersion(Math.max(preferedWireFormatInfo.getVersion(), info.getVersion()) );
|
||||
this.setVersion(Math.min(preferedWireFormatInfo.getVersion(), info.getVersion()) );
|
||||
this.stackTraceEnabled = info.isStackTraceEnabled() && preferedWireFormatInfo.isStackTraceEnabled();
|
||||
this.tcpNoDelayEnabled = info.isTcpNoDelayEnabled() && preferedWireFormatInfo.isTcpNoDelayEnabled();
|
||||
this.cacheEnabled = info.isCacheEnabled() && preferedWireFormatInfo.isCacheEnabled();
|
||||
|
|
Loading…
Reference in New Issue