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

Function tryClose

lib/internal/http2/core.js:477–481  ·  view source on GitHub ↗
(fd)

Source from the content-addressed store, hash-verified

475}
476
477function tryClose(fd) {
478 // Try to close the file descriptor. If closing fails, assert because
479 // an error really should not happen at this point.
480 fs.close(fd, assert.ifError);
481}
482
483// Called when the Http2Stream has finished sending data and is ready for
484// trailers to be sent. This will only be called if the { hasOptions: true }

Callers 3

processRespondWithFDFunction · 0.85
doSendFileFDFunction · 0.85
afterOpenFunction · 0.85

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…