Skip to content

Concurrency Experiments. #373

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Concurrency Experiments. #373

wants to merge 1 commit into from

Conversation

Andy--S
Copy link
Contributor

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

No description provided.

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

@Copilot Copilot AI left a comment

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;
};
Copy link
Preview

Copilot AI Jun 5, 2025

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.

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.

1 participant