()
| 41 | } |
| 42 | |
| 43 | function 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 | |
| 60 | function client() { |
| 61 | const net = require('net'); |
no test coverage detected
searching dependent graphs…