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 @@ -28,7 +28,11 @@ export function setupConnection(server, config) {
2828
2929 // not using https? well that's easy!
3030 if ( ! useSsl ) {
31- server . connection ( connectionOptions ) ;
31+ const connection = server . connection ( connectionOptions ) ;
32+
33+ // revert to previous 5m keepalive timeout in Node < 8
34+ connection . listener . keepAliveTimeout = 120e3 ;
35+
3236 return ;
3337 }
3438
@@ -47,6 +51,9 @@ export function setupConnection(server, config) {
4751 }
4852 } ) ;
4953
54+ // revert to previous 5m keepalive timeout in Node < 8
55+ connection . listener . keepAliveTimeout = 120e3 ;
56+
5057 const badRequestResponse = new Buffer ( 'HTTP/1.1 400 Bad Request\r\n\r\n' , 'ascii' ) ;
5158 connection . listener . on ( 'clientError' , ( err , socket ) => {
5259 if ( socket . writable ) {
You can’t perform that action at this time.
0 commit comments