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

Update Netty to latest version, 4.1.117.Final #3279

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Update Netty to latest version, 4.1.117.Final #3279

merged 3 commits into from
Jan 31, 2025

Conversation

guizmaii
Copy link
Member

@guizmaii guizmaii commented Jan 19, 2025

@guizmaii guizmaii self-assigned this Jan 19, 2025
@guizmaii guizmaii force-pushed the update_netty branch 2 times, most recently from c674d0b to c256322 Compare January 19, 2025 23:08
Comment on lines +153 to +158
def brotliModeToJava(brotli: CompressionOptions.Mode): BrotliMode = brotli match {
case CompressionOptions.Mode.Font => BrotliMode.FONT
case CompressionOptions.Mode.Text => BrotliMode.TEXT
case CompressionOptions.Mode.Generic => BrotliMode.GENERIC
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```scala
    - Https Client request - From Trust Store / Client / should throw DecoderException for handshake failure - 36 s 514 ms
      ✗ ConnectTimeoutException was not List(DecoderException, PrematureChannelClosureException)
      <CODE>
      hasField = "ConnectTimeoutException"
      fails = io.netty.channel.ConnectTimeoutException: connection timed out after 30000 ms: untrusted-root.badssl.com/104.154.89.105:443
      input = Failure(
        cause = Fail(
          value = io.netty.channel.ConnectTimeoutException: connection timed out after 30000 ms: untrusted-root.badssl.com/104.154.89.105:443,
          trace = StackTrace(
            fiberId = Composite(
              left = Runtime(
                id = 208992,
                startTimeMillis = 1737881442230,
                location = "zio.http.ClientHttpsSpecBase.tests.actual(ClientHttpsSpec.scala:66)"
              ),
              right = Runtime(
                id = 208991,
                startTimeMillis = 1737881442230,
                location = "zio.http.ClientHttpsSpecBase.tests(ClientHttpsSpec.scala:65)"
              )
            ),
            stackTrace = Chunk("zio.http.ClientHttpsSpecBase.tests.actual(ClientHttpsSpec.scala:66)", "zio.http.ClientHttpsSpecBase.tests.actual(ClientHttpsSpec.scala:66)", "zio.http.ClientHttpsSpecBase.tests(ClientHttpsSpec.scala:67)", "zio.http.ClientHttpsSpecBase.tests(ClientHttpsSpec.scala:65)")
          )
        )
      )
      at /home/runner/work/zio-http/zio-http/zio-http/jvm/src/test/scala/zio/http/ClientHttpsSpec.scala:67
```

See https://github.com/zio/zio-http/actions/runs/12973059540/job/36181246408?pr=3279
@@ -74,7 +73,7 @@ abstract class ClientHttpsSpecBase extends ZIOHttpSpec {
),
),
)
} @@ nonFlaky(20),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This nonFlaky was generating too many calls to https://untrusted-root.badssl.com/, which was leading to connect timeouts (probably some anti-ddos/ratelimiting mechanism there)

@guizmaii
Copy link
Member Author

@987Nabil Ready for review :)

@987Nabil 987Nabil merged commit 7ccdfbb into main Jan 31, 2025
69 checks passed
@987Nabil 987Nabil deleted the update_netty branch January 31, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants