Skip to content

Commit 4c3e625

Browse files
author
Matthew Fisher
committed
add socket timeout to match client-go
Signed-off-by: Matthew Fisher <[email protected]>
1 parent bd762eb commit 4c3e625

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/watch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export class Watch {
114114
const stream = byline.createStream();
115115
req.on('error', doneCallOnce);
116116
req.on('socket', function(socket) {
117+
socket.setTimeout(30000);
117118
socket.setKeepAlive(true);
118119
keepalive.setKeepAliveInterval(socket, 30000);
119120
});

0 commit comments

Comments
 (0)