Skip to content
Success

Changes

Summary

  1. Bump jetty-server in /tests/qa/lifecycle-test (details)
  2. Fix race condition causing unexpected idle disconnections (details)
  3. setup-java v3 (details)
  4. Updated 1.x dependency versions (details)
  5. Make sure `@OnClose` is called when `ProtocolHandler.close` throws IOException (details)
Commit f0e177e4843d35731d6407e574f223c1b8ac2344 by 15908245+jansupol
Bump jetty-server in /tests/qa/lifecycle-test

Bumps [jetty-server](https://github.com/eclipse/jetty.project) from 9.4.41.v20210516 to 9.4.51.v20230217.
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.41.v20210516...jetty-9.4.51.v20230217)

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-server
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
The file was modified tests/qa/lifecycle-test/pom.xml (diff)
Commit 0a1d33f8bce227801440927d03c54d2c963f10cf by 15908245+jansupol
Fix race condition causing unexpected idle disconnections

This issue may appear when 'send[data]' methods are triggered from different threads. As a result
threads race appears between cancelIdleTimeoutExecutor and scheduling new idle task.
Example of race:
1. Thread 1 cancels task
2. Thread 2 waits until thread 1 will finish
3. Thread 1 finishes
4. Thread 2 tries to cancel already cancelled task and leaves synchronized block
5. Thread 1 schedules new idle task
6. Thread 2 schedules another idle task, the first is overwritten and never cancelled.
As a result disconnection is triggered precisely after set idle timeout passes.

Signed-off-by: Mykyta Leonov <nykyta.leonov@gmail.com>
The file was modified core/src/main/java/org/glassfish/tyrus/core/TyrusSession.java (diff)
The file was modified .github/workflows/maven.yml (diff)
Commit fbd9bbf0daf0d2c6b9cf2afc458be4f11ac9a731 by 15908245+jansupol
Updated 1.x dependency versions

Signed-off-by: jansupol <jan.supol@oracle.com>
The file was modified pom.xml (diff)
Commit d386cf86379c7d5ea6bad20b022a3999bed7acde by 15908245+jansupol
Make sure `@OnClose` is called when `ProtocolHandler.close` throws IOException

Signed-off-by: jansupol <jan.supol@oracle.com>
The file was modified core/src/main/java/org/glassfish/tyrus/core/ProtocolHandler.java (diff)
The file was modified core/src/main/resources/org/glassfish/tyrus/core/l10n/localization.properties (diff)
The file was addedcore/src/test/java/org/glassfish/tyrus/core/ProtocolHandlerTest.java