File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ if (!cluster.isMaster) {
17
17
const server = net . createServer ( function ( s ) {
18
18
if ( common . isWindows ) {
19
19
s . on ( 'error' , function ( err ) {
20
- // Prevent possible ECONNRESET errors from popping up
21
20
if ( err . code !== 'ECONNRESET' )
22
21
throw err ;
23
22
} ) ;
@@ -36,10 +35,8 @@ const server = net.createServer(function(s) {
36
35
// Errors can happen if this connection
37
36
// is still happening while the server has been closed.
38
37
s . on ( 'error' , function ( err ) {
39
- if ( ( err . code !== 'ECONNRESET' ) &&
40
- ( ( err . code !== 'ECONNREFUSED' ) ) ) {
38
+ if ( err . code !== 'ECONNREFUSED' )
41
39
throw err ;
42
- }
43
40
} ) ;
44
41
}
45
42
@@ -53,14 +50,7 @@ const server = net.createServer(function(s) {
53
50
send ( function ( err ) {
54
51
assert . ifError ( err ) ;
55
52
send ( function ( err ) {
56
- // Ignore errors when sending the second handle because the worker
57
- // may already have exited.
58
- if ( err ) {
59
- if ( ( err . message !== 'channel closed' ) &&
60
- ( err . code !== 'ECONNREFUSED' ) ) {
61
- throw err ;
62
- }
63
- }
53
+ assert . ifError ( err ) ;
64
54
} ) ;
65
55
} ) ;
66
56
} ) ;
You can’t perform that action at this time.
0 commit comments