-
Notifications
You must be signed in to change notification settings - Fork 272
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
fix: split osc packets #928
base: master
Are you sure you want to change the base?
Conversation
::osc::OutboundPacketStream o(reinterpret_cast<char*>(buffer_.data()), | ||
static_cast<unsigned long>(buffer_.size())); | ||
// TODO: Should use server clock. | ||
time_++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good enough
eebfc2b
to
09e2997
Compare
@@ -126,13 +132,33 @@ struct client::impl : public spl::enable_shared_from_this<client::impl> | |||
} | |||
|
|||
o << ::osc::EndMessage; | |||
|
|||
if (o.Size() >= 1024) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Limit is 1500 bytes... this an approximation.
Helges 2.1 implementation actually did this mostly correctly. It was just very complicated and we need to provide a time tag for each split bundle. |
@ronag Are you working on this PR or can it be closed? |
2b0c540
to
8ec45a4
Compare
I don't have time to do this properly. Hoping someone can take over finish up and test.
It should be good enough. Although room for improvement. But it needs test.