()
| 900 | // This function is necessary in the case where we receive the entire response |
| 901 | // from the server before we finish sending out the request. |
| 902 | function requestOnFinish() { |
| 903 | const req = this; |
| 904 | |
| 905 | // If the response ends before this request finishes writing, `responseOnEnd()` |
| 906 | // already released the socket. When `finish` fires later, that socket may |
| 907 | // belong to a different request, so only call `responseKeepAlive()` when the |
| 908 | // original request is still alive (`!req.destroyed`). |
| 909 | if (req.shouldKeepAlive && req._ended && !req.destroyed) |
| 910 | responseKeepAlive(req); |
| 911 | } |
| 912 | |
| 913 | function emitFreeNT(req) { |
| 914 | req._closed = true; |
nothing calls this directly
no test coverage detected
searching dependent graphs…