Skip to content

Commit

Permalink
addressing reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
bschuchardt committed Apr 8, 2020
1 parent 2765825 commit 1260318
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,17 @@ public void connectToSNIProxyDocker() {
.setPoolSocketFactory(ProxySocketFactories.sni("localhost",
proxyPort))
.create();
// the geode-starter.gfsh script has created a Region named "jellyfish" on the
// server sitting behind the haproxy gateway. Show that an empty client cache can
// put something in that region and then retrieve it.
Region<String, String> region =
cache.<String, String>createClientRegionFactory(ClientRegionShortcut.PROXY)
.create("jellyfish");
region.destroy("hello");
region.put("hello", "world");
assertThat(region.get("hello")).isEqualTo("world");
// the geode-starter.gfsh script put an entry named "foo" into the region with the
// value "bar"
assertThat(region.get("foo")).isEqualTo("bar");
}
}
2 changes: 1 addition & 1 deletion geode-docs/reference/topics/client-cache.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Provide a server list or `locator` list, but not both.
```
## <a id="cc-socket-factory" class="no-quick-link"></a>&lt;socket-factory&gt;
Defines a factory to create socket connections to locators and servers. A typical use of this element is to redirect connections to an ingress gateway such as Istio or HAProxy in a cluster where the TLS (SSL) Server Name Extension field is set to indicate the actual locator or server the client is trying to reach. This allows you to expose only the gateway hostname:port without the client needing to be able to resolve the names of the locator and server machines.
Defines a factory to create socket connections to locators and servers. A typical use of this element is to redirect connections to an ingress gateway such as Istio or HAProxy in a cluster where the TLS (SSL) Server Name Indication (SNI)field is set to indicate the actual locator or server the client is trying to reach. This allows you to expose only the gateway hostname:port without the client needing to be able to resolve the names of the locator and server machines.
**Note:**
This setting may be used with either a Server list or a Locator list. It will be used to form connections to either.
Expand Down

0 comments on commit 1260318

Please sign in to comment.