Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Locator connection have slightly different behavior from cache server connections.  They still do the normal socket establishment, followed by protocol specification byte (110 for protobuf), followed by major version byte (currently 1), but there is currently no handshaking or authentication on locator connections.  Additionally, a connection on a locator is only valid for a single protobuf message, the locator will close the connection after it sends back any response object In version 1 of the protocol, locators are unable to maintain state on connections for round trip communication.  They still need to start off their connection with a NewConnectionHandshake to identify the connection as protobuf and specify the version, but this must be immediately followed by a locator request operation from below.  If the locator is able to communicate with the given protocol version, it will handle the request operation, send the corresponding response, and then close the connection.  If unable to communicate with the requested version, the locator will just close the connection.

GetAvailableServers

Description

...