Skip to content

Commit

Permalink
Update src/core/server/http/http_server.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Dover <[email protected]>
  • Loading branch information
kobelb and joshdover authored Aug 10, 2020
1 parent 87634ff commit 20ff93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/server/http/http_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ export class HttpServer {
app: kibanaRouteState,
ext: {
onPreAuth: {
method: (request, reply) => {
method: (request, h) => {
if (timeout?.idleSocket) {
request.raw.req.socket.setTimeout(timeout?.idleSocket);
} else if (fakeSocketTimeout) {
request.raw.req.socket.setTimeout(this.config!.socketTimeout || 0);
}

return reply.continue;
return h.continue;
},
},
},
Expand Down

0 comments on commit 20ff93f

Please sign in to comment.