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

Function server

test/sequential/test-net-GH-5504.js:43–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43function server() {
44 const net = require('net');
45 const content = Buffer.alloc(64 * 1024 * 1024, '#');
46 net.createServer(function(socket) {
47 this.close();
48 socket.on('end', function() {
49 console.error('end');
50 });
51 socket.on('_socketEnd', function() {
52 console.error('_socketEnd');
53 });
54 socket.write(content);
55 }).listen(common.PORT, common.localhostIPv4, function() {
56 console.log('listening');
57 });
58}
59
60function client() {
61 const net = require('net');

Callers 1

Calls 8

allocMethod · 0.80
listenMethod · 0.80
closeMethod · 0.65
requireFunction · 0.50
onMethod · 0.45
errorMethod · 0.45
writeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…