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

Fixup regression in socket api #2235

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Jun 7, 2024

A regression was introduced in the socket API with the recent additional of the fetch standard url compat flag.

Fixes: #2232

A regression was introduced in the socket API with the recent
additional of the fetch standard url compat flag.

Fixes: #2232
@jasnell jasnell requested review from dom96 and vickykont June 7, 2024 15:33
@jasnell jasnell requested review from a team as code owners June 7, 2024 15:33
@jasnell jasnell merged commit 5a29a78 into main Jun 7, 2024
9 of 10 checks passed
// TODO(cleanup): The jsRequest here appears to only be used to serialize the
// cf blob json, which seems quite wasteful. We ought to be able to avoid the
// extra allocations and work here.
auto jsRequest = Request::constructor(js, kj::str("tcp://", addressStr), kj::none);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do make sure this works with the old compat dates too (though hopefully our test suite will test that)

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.

🐛 BUG: Runtime API: cloudflare:sockets TypeError: Invalid URL: 1.1.1.1:1234
3 participants