(err)
| 9687 | } |
| 9688 | socket.on("timeout", onTimeout); |
| 9689 | function onError(err) { |
| 9690 | const listenerCount = socket.listeners("error").length; |
| 9691 | debug5( |
| 9692 | "%s(requests: %s, finished: %s) error: %s, listenerCount: %s", |
| 9693 | socket[SOCKET_NAME], |
| 9694 | socket[SOCKET_REQUEST_COUNT], |
| 9695 | socket[SOCKET_REQUEST_FINISHED_COUNT], |
| 9696 | err, |
| 9697 | listenerCount |
| 9698 | ); |
| 9699 | agent.errorSocketCount++; |
| 9700 | if (listenerCount === 1) { |
| 9701 | debug5("%s emit uncaught error event", socket[SOCKET_NAME]); |
| 9702 | socket.removeListener("error", onError); |
| 9703 | socket.emit("error", err); |
| 9704 | } |
| 9705 | } |
| 9706 | socket.on("error", onError); |
| 9707 | function onRemove() { |
| 9708 | debug5( |
no test coverage detected
searching dependent graphs…