Skip to content

Commit

Permalink
Add debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Dec 7, 2023
1 parent 1e8f52b commit 8f3b263
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ allprojects {
// Drop heap dump and exit on OOME.
jvmArgs '-XX:+ExitOnOutOfMemoryError'
jvmArgs '-XX:+HeapDumpOnOutOfMemoryError'
// jvmArgs "-Xdebug", "-agentlib:jdwp=transport=dt_socket,address=*:8787,server=y,suspend=y"

// `-Djava.security.manager` was added in Java 17 and the default value was changed to
// `disallow` in Java 18.
Expand Down
2 changes: 1 addition & 1 deletion it/kubernetes-chaos-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ minikube start --driver=docker --memory 8192 --cpus 3
Install ChaosMesh on minikube:

```bash
curl -sSL https://mirrors.chaos-mesh.org/v2.6.2/install.sh | bash
curl -sSL https://mirrors.chaos-mesh.org/v2.6.0/install.sh | bash
```

Wait for the pods to be all ready:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.linecorp.armeria.client.ClientFactoryBuilder;
import com.linecorp.armeria.client.WebClient;
import com.linecorp.armeria.client.WebClientBuilder;
import com.linecorp.armeria.client.logging.LoggingClient;
import com.linecorp.armeria.client.proxy.ProxyConfig;
import com.linecorp.armeria.common.HttpHeaderNames;
import com.linecorp.armeria.common.HttpHeaders;
Expand Down Expand Up @@ -61,6 +62,9 @@ public ArmeriaHttpClient build() {
// TODO(ikhoon): Provide a way to configure this.
factoryBuilderHolder.get().useHttp2Preface(false);

if (isPreferHttp11()) {
factoryBuilderHolder.get().preferHttp1(true);
}
if (sslContext != null) {
final KeyManager keyManager =
(keyManagers != null && keyManagers.length > 0) ? keyManagers[0] : null;
Expand Down Expand Up @@ -111,6 +115,7 @@ public ArmeriaHttpClient build() {
if (followRedirects) {
clientBuilder.followRedirects();
}
clientBuilder.decorator(LoggingClient.newDecorator());

final ClientFactory clientFactory = factoryBuilderHolder.maybeBuild();
clientBuilder.factory(clientFactory);
Expand Down

0 comments on commit 8f3b263

Please sign in to comment.