Hiram R. Chirino 2006-09-06 00:39:54 +00:00
parent 2bdded210e
commit 937de5bd11
1 changed files with 1 additions and 1 deletions

View File

@ -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();