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

Function tryReadStart

lib/net.js:915–922  ·  view source on GitHub ↗
(socket)

Source from the content-addressed store, hash-verified

913
914
915function tryReadStart(socket) {
916 // Not already reading, start the flow
917 debug('Socket._handle.readStart');
918 socket._handle.reading = true;
919 const err = socket._handle.readStart();
920 if (err)
921 socket.destroy(new ErrnoException(err, 'read'));
922}
923
924// Just call handle.readStart until we have enough in the buffer
925Socket.prototype._read = function(n) {

Callers 1

net.jsFile · 0.85

Calls 3

debugFunction · 0.50
readStartMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…