Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 3583cc2

Browse files
author
Alan Shaw
authored
fix: disable socket timeout for pubsub subscriptions (#2303)
By default, node sockets automatically timeout after 2 minutes. This instructs Hapi to disable the timeout. License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent 3d29d60 commit 3583cc2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/http/api/routes/pubsub.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ module.exports = [
66
{
77
method: '*',
88
path: '/api/v0/pubsub/sub',
9-
handler: resources.pubsub.subscribe.handler
9+
handler: resources.pubsub.subscribe.handler,
10+
options: {
11+
timeout: {
12+
socket: false
13+
}
14+
}
1015
},
1116
{
1217
method: '*',

0 commit comments

Comments
 (0)