Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Concurrency Experiments. - #373

#373
Draft
Andy--S wants to merge 1 commit into
mainRed5/red5-server:mainfrom
bug/concurrencyRed5/red5-server:bug/concurrencyCopy head branch name to clipboard
Draft

Concurrency Experiments.#373
Andy--S wants to merge 1 commit into
mainRed5/red5-server:mainfrom
bug/concurrencyRed5/red5-server:bug/concurrencyCopy head branch name to clipboard

Conversation

@Andy--S

@Andy--S Andy--S commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@Andy--S
Andy--S requested review from Copilot and mondain and removed request for mondain June 5, 2025 13:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces changes to support concurrency experiments by refactoring the handling of the IoBuffer data field and adding a new mechanism for performing forked event duplication.

  • Updated version number in pom.xml
  • Removed duplicate IoBuffer fields from several event classes, moving the data field to BaseEvent
  • Added forkedDuplicate implementations in VideoData, Notify, and AudioData and new concurrency logic in BaseEvent

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pom.xml Bumped server version from 2.0.18 to 2.0.19
common/src/main/java/org/red5/server/net/rtmp/event/VideoData.java Removed duplicate IoBuffer field and added forkedDuplicate method
common/src/main/java/org/red5/server/net/rtmp/event/Unknown.java Removed duplicate IoBuffer field
common/src/main/java/org/red5/server/net/rtmp/event/Notify.java Removed duplicate IoBuffer field and added forkedDuplicate method
common/src/main/java/org/red5/server/net/rtmp/event/BaseEvent.java Moved IoBuffer field to BaseEvent and added concurrency support methods
common/src/main/java/org/red5/server/net/rtmp/event/AudioData.java Removed duplicate IoBuffer field and added forkedDuplicate method
common/src/main/java/org/red5/server/net/rtmp/event/Aggregate.java Removed duplicate IoBuffer field
Comments suppressed due to low confidence (1)

common/src/main/java/org/red5/server/net/rtmp/event/BaseEvent.java:130

  • Consider marking forkedDuplicate() as abstract in BaseEvent rather than providing a default implementation that returns null, to ensure that all subclasses implement this method appropriately.
public BaseEvent forkedDuplicate() {


public BaseEvent forkedDuplicate() {
return null;
};

Copilot AI Jun 5, 2025

Copy link

Choose a reason for hiding this comment

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

The semicolon after the closing brace of the forkedDuplicate() method is unnecessary in Java; consider removing it to adhere to standard style conventions.

Suggested change
};
}

Copilot uses AI. Check for mistakes.
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
4.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.