Skip to content

Upgrade uWebSockets & usockets - #8164

Merged
Jarred-Sumner merged 11 commits into
mainfrom
jarred/event-loop-tweka
Jan 14, 2024
Merged

Jarred-Sumner merged 11 commits into
mainfrom
jarred/event-loop-tweka

Conversation

@Jarred-Sumner

Copy link
Copy Markdown
Collaborator

@github-actions

github-actions Bot commented Jan 14, 2024 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jan 14, 2024 •

Copy link
Copy Markdown
Contributor

❌🪟 @Jarred-Sumner, there are 2 test regressions on Windows x86_64

  • test\js\web\websocket\autobahn.test.ts
  • test\regression\issue\08095.test.ts

Full Test Output

@github-actions

github-actions Bot commented Jan 14, 2024 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jan 14, 2024 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jan 14, 2024 •

Copy link
Copy Markdown
Contributor

@Jarred-Sumner
Jarred-Sumner merged commit 2c3dc51 into main Jan 14, 2024
@Jarred-Sumner
Jarred-Sumner deleted the jarred/event-loop-tweka branch January 14, 2024 10:04
/* This guy really has only 30 bits since we reserve two highest bits to chunked encoding parsing state */
unsigned int remainingStreamingBytes = 0;
/* This guy really has only 30 bits since we reserve two highest bits to chunked encoding parsing state */
uint64_t remainingStreamingBytes = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this comment is not true anymore because now we are using up to 18 number of 9s

if (!CONSUME_MINIMALLY)
{
unsigned int emittable = std::min<unsigned int>(remainingStreamingBytes, length);
unsigned int emittable = (unsigned int) std::min<uint64_t>(remainingStreamingBytes, length);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what happens when we send like a 5gb in one chunk now?

static uint64_t toUnsignedInteger(std::string_view str) {
/* We assume at least 64-bit integer giving us safely 999999999999999999 (18 number of 9s) */
if (str.length() > 18) {
return UINT_MAX;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

999999999999999999 is bigger than UINT_MAX now we probably wanna ULONG_MAX now

@paperclover

Copy link
Copy Markdown
Contributor

@Jarred-Sumner Please look at CI checks before merging. This broke windows

image

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.

3 participants