We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a63d3c4 commit 1ecc5e1Copy full SHA for 1ecc5e1
nats/js/client.py
@@ -1244,7 +1244,7 @@ async def _fetch_n(
1244
)
1245
msg = await self._sub.next_msg(timeout=deadline)
1246
status = JetStreamContext.is_status_msg(msg)
1247
- if status == api.StatusCode.NO_MESSAGES:
+ if status == api.StatusCode.NO_MESSAGES or status == api.StatusCode.REQUEST_TIMEOUT:
1248
# No more messages after this so fallthrough
1249
# after receiving the rest.
1250
break
0 commit comments