Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get call in helidon 2.5.5 hangs when response is greater than 5 mb. #8011

Closed
SkyGlancer opened this issue Nov 16, 2023 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@SkyGlancer
Copy link

SkyGlancer commented Nov 16, 2023

Environment Details

  • Helidon Version:2.5.5
  • Helidon SE or Helidon MP: MP
  • JDK version:17
  • OS:linux
  • Docker version (if applicable):

Problem Description

Steps to reproduce

git clone [email protected]:oracle/helidon.git
cd helidon
git checkout tags/2.5.5
cd examples/microprofile/hello-world-explicit

change src/main/java/io/helidon/microprofile/example/helloworld/explicit/HelloWorldResource.java

diff --git a/examples/microprofile/hello-world-explicit/src/main/java/io/helidon/microprofile/example
index 7415426..8430bec 100644
--- a/examples/microprofile/hello-world-explicit/src/main/java/io/helidon/microprofile/example/hellow
+++ b/examples/microprofile/hello-world-explicit/src/main/java/io/helidon/microprofile/example/hellow
@@ -74,7 +74,11 @@ public class HelloWorldResource {
     @GET
     @Produces(MediaType.TEXT_PLAIN)
     public String message() {
-        return "Hello World from application " + applicationName;
+      StringBuilder str = new StringBuilder();
+          for(int i=0; i<6000000; i++) {
+              str.append("a");
+          }
+      return str.toString();
     }
curl localhost:5000//helloworld hangs

Note: this is working in 2.6.3. we want to check if there are any workarounds for 2.5.5 and why it is happening.

@barchetta
Copy link
Member

Please see #5766. It includes a work-around.

@barchetta barchetta added the duplicate This issue or pull request already exists label Nov 16, 2023
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
Archived in project
Development

No branches or pull requests

2 participants