The protocol version checking on the grid server connector seemed to have a bug. I think I fixed it.

0.8.2-post-fixes
Diva Canto 2015-10-17 19:29:20 -07:00
parent e2d7e6290d
commit 339e252cce
1 changed files with 18 additions and 1 deletions

View File

@ -159,7 +159,24 @@ namespace OpenSim.Server.Handlers.Grid
m_log.WarnFormat("[GRID HANDLER]: no maximum protocol version in request to register region"); m_log.WarnFormat("[GRID HANDLER]: no maximum protocol version in request to register region");
// Check the protocol version // Check the protocol version
if ((versionNumberMin > ProtocolVersions.ServerProtocolVersionMax && versionNumberMax < ProtocolVersions.ServerProtocolVersionMax)) // This is how it works:
// Example 1:
// Client: [0 0]
// Server: [1 1]
// ==> fail
// Example 2:
// Client: [1 1]
// Server: [0 0]
// ==> fail
// Example 3:
// Client: [0 1]
// Server: [1 1]
// ==> success
// Example 4:
// Client: [1 1]
// Server: [0 1]
// ==> success
if ((versionNumberMin > ProtocolVersions.ServerProtocolVersionMax || versionNumberMax < ProtocolVersions.ServerProtocolVersionMin))
{ {
// Can't do, there is no overlap in the acceptable ranges // Can't do, there is no overlap in the acceptable ranges
return FailureResult(); return FailureResult();