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

added udpServer/Client direct write options, fixed issue with udp non… #64

Merged
merged 4 commits into from
Oct 4, 2018

Conversation

lwahlmeier
Copy link
Member

  • added in DirectWrite support for udp client/server. This allows you to write to a udp socket w/o having to use the selector. Since UDP will just drop packets if you overfill its socket buffer timing and buffering have to be handled by the implementor. This is more for RTC type communication since its more important to reduce delay to socket then guarantee delivery.
  • Fixed non-direct write issue in UDPServer, where the server could mixup the settableListeneeablefuture and the buffer its was tied too if more then one write came in on multiple clients for that server.

…-direct writes possibly getting the future and buffer our of sync
Copy link
Member

@jentfoo jentfoo left a comment

Choose a reason for hiding this comment

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

Looks mostly good, a few comments / questions posted.

Before we release this, do you mind if I also update to the latest threadly (5.28), as well as the latest gradle wrapper?

src/main/java/org/threadly/litesockets/Client.java Outdated Show resolved Hide resolved
src/main/java/org/threadly/litesockets/UDPServer.java Outdated Show resolved Hide resolved
src/main/java/org/threadly/litesockets/UDPServer.java Outdated Show resolved Hide resolved
src/main/java/org/threadly/litesockets/UDPServer.java Outdated Show resolved Hide resolved
@lwahlmeier
Copy link
Member Author

Resolved the issue you had, also updated versions of threadly and LS.

Copy link
Member

@jentfoo jentfoo left a comment

Choose a reason for hiding this comment

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

Looks good, just one comment around the gradle upgrade

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
Copy link
Member

Choose a reason for hiding this comment

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

I think you mean 4.10.2 here. If updating gradle you will need to update the build.upload like this as well:

threadly/threadly@2df9ce5

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, I will get that done

@lwahlmeier
Copy link
Member Author

Fixed the gradle wrapper and upload script, take a look and merge it if you are good with it all.

@jentfoo jentfoo merged commit 55c4aee into master Oct 4, 2018
@jentfoo jentfoo deleted the udpDW branch October 4, 2018 14:11
@jentfoo
Copy link
Member

jentfoo commented Oct 4, 2018

I will release this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants