MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-tls-close-event-after-write.js:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16const buffer_size = 1024 * 1024;
17
18function test() {
19 if (cconn && sconn) {
20 cconn.resume();
21 sconn.resume();
22 sconn.end(Buffer.alloc(buffer_size));
23 }
24}
25
26const server = tls.createServer({
27 key: fixtures.readKey('agent1-key.pem'),

Calls 3

allocMethod · 0.80
resumeMethod · 0.65
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…