mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Use correct event name in comment (error)
This commit is contained in:
parent
df5c424a42
commit
4dc14397ad
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ function tunnelRequestToDestination(req, clientSocket, head) {
|
||||||
|
|
||||||
clientSocket.on("error", () => {
|
clientSocket.on("error", () => {
|
||||||
// This can happen if the client TCP socket sends RST instead of FIN.
|
// This can happen if the client TCP socket sends RST instead of FIN.
|
||||||
// Not subscribing to 'close' event will cause node to throw and crash.
|
// Not subscribing to 'error' event will cause node to throw and crash.
|
||||||
if (serverSocket.writable) {
|
if (serverSocket.writable) {
|
||||||
serverSocket.end();
|
serverSocket.end();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue