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

Fix UDP socket sending compatibility with older Starboard builds #4337

Conversation

jellefoks
Copy link
Member

@jellefoks jellefoks commented Oct 30, 2024

Starboard builds that don't include #4270 hard assert when sending a UDP packet without a destination address, even on connected sockets.

This fixes that by supplying the remote address, unless the "dev.cobalt.extension.SocketReceiveMultiMsg" extension from #4321 is also implemented for the platform. As a result, platforms that implement the extension will still get the full performance benefit of relying on connected UDP sockets.

b/374155470
b/373726636
b/205134049
b/369965331

@jellefoks jellefoks force-pushed the fix_udp_socket_connections_for_older_starboard branch 3 times, most recently from e2d9600 to f1cccf8 Compare October 30, 2024 21:48
@jellefoks jellefoks force-pushed the fix_udp_socket_connections_for_older_starboard branch from f1cccf8 to 41543cf Compare October 30, 2024 21:49
@jellefoks jellefoks enabled auto-merge (squash) October 30, 2024 21:50
@jellefoks jellefoks merged commit a1f634b into youtube:25.lts.1+ Oct 31, 2024
631 of 639 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants