Skip to content

Conversation

@nektro
Copy link
Member

@nektro nektro commented Apr 12, 2025

adds 40 new passing node tests, more to be added in followup

Fixes #1796
Fixes #16079
Fixes #16564
Fixes #2809
Fixes #16943
Fixes #4660
Fixes #19545

@robobun
Copy link
Collaborator

robobun commented Apr 12, 2025

Updated 4:04 PM PT - May 28th, 2025

@nektro, your commit 6a07f7e has 1 failures in Build #17511:


🧪   To try this PR locally:

bunx bun-pr 18962

That installs a local version of the PR into your bun-18962 executable, so you can run:

bun-18962 --bun

@pfgithub pfgithub mentioned this pull request Apr 15, 2025
@@ -1,5 +1,6 @@
'use strict';
const common = require('../common');
if (typeof globalThis.Bun !== "undefined") return; // TODO: BUN
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (typeof globalThis.Bun !== "undefined") return; // TODO: BUN

Copy link
Member Author

Choose a reason for hiding this comment

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

we report openssl v1 but hit the error in the comment for openssl v3

@alii alii mentioned this pull request May 27, 2025
2 tasks
pub const ref = RefCount.ref;
pub const deref = RefCount.deref;
const ENABLE_AUTO_CORK = true; // ENABLE CORK OPTIMIZATION
const ENABLE_AUTO_CORK = false; // ENABLE CORK OPTIMIZATION
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const ENABLE_AUTO_CORK = false; // ENABLE CORK OPTIMIZATION
const ENABLE_AUTO_CORK = true; // ENABLE CORK OPTIMIZATION

We need corking otherwise performance will drop a lot

Copy link
Member Author

Choose a reason for hiding this comment

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

mentioned above, i'll be implementing the AutoFlusher protocol and reevaluating corking post-merge

pub fn close(this: *This, globalObject: *JSC.JSGlobalObject, callframe: *JSC.CallFrame) bun.JSError!JSValue {
JSC.markBinding(@src());
_ = callframe;
this.socket.close(.normal);
Copy link
Member

Choose a reason for hiding this comment

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

should close wait until all buffered data is flushed? or is meant to immediately destroy the connection?

Copy link
Member Author

Choose a reason for hiding this comment

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

lemme double check node's source

Copy link
Member Author

Choose a reason for hiding this comment

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

calls https://docs.libuv.org/en/v1.x/handle.html#c.uv_close which destroys immediately.
perhaps i should make the js call shutdown and remove this method

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

do you have a preferred path forward?

@cirospaciari cirospaciari merged commit 8099922 into main May 29, 2025
70 of 72 checks passed
@cirospaciari cirospaciari deleted the nektro-patch-40023 branch May 29, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

7 participants