File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ export function setupConnection(server, config) {
4747
4848 // not using https? well that's easy!
4949 if ( ! useSsl ) {
50- server . connection ( connectionOptions ) ;
50+ const connection = server . connection ( connectionOptions ) ;
51+
52+ // revert to previous 5m keepalive timeout in Node < 8
53+ connection . listener . keepAliveTimeout = 120e3 ;
54+
5155 return ;
5256 }
5357
@@ -66,6 +70,9 @@ export function setupConnection(server, config) {
6670 }
6771 } ) ;
6872
73+ // revert to previous 5m keepalive timeout in Node < 8
74+ connection . listener . keepAliveTimeout = 120e3 ;
75+
6976 const badRequestResponse = new Buffer ( 'HTTP/1.1 400 Bad Request\r\n\r\n' , 'ascii' ) ;
7077 connection . listener . on ( 'clientError' , ( err , socket ) => {
7178 if ( socket . writable ) {
You can’t perform that action at this time.
0 commit comments