Skip to content

Commit 81c603e

Browse files
committed
fix: extend effect rpc ping timeout
1 parent b3e8c03 commit 81c603e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

patches/effect@4.0.0-beta.73.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ index 811a8a8..f9cf2eb 100644
267267
recievedPong = false;
268268
- return writePing;
269269
+ return (hooks?.onPing ?? Effect.void).pipe(Effect.andThen(writePing));
270-
}).pipe(Effect.delay("5 seconds"), Effect.ignore, Effect.forever, Effect.interruptible, Effect.forkScoped);
270+
- }).pipe(Effect.delay("5 seconds"), Effect.ignore, Effect.forever, Effect.interruptible, Effect.forkScoped);
271+
+ }).pipe(Effect.delay("60 seconds"), Effect.ignore, Effect.forever, Effect.interruptible, Effect.forkScoped);
271272
return {
272273
timeout: latch.await,
273274
@@ -820,6 +849,11 @@ export const makeProtocolWorker = options => Protocol.make(Effect.fnUntraced(fun

0 commit comments

Comments
 (0)