Why is subscribe() failing to complete? #606
Replies: 3 comments 2 replies
-
Will look into this. |
Beta Was this translation helpful? Give feedback.
-
Is this possible?
In other words, it is behaving as if nothing is processing the commands in the flush queue. If self._pending_data_size > self._max_pending_size, force_flush is True and this would ultimately trigger a FlushTimeoutError to be reported in _flush_pending.
But based on these defaults: |
Beta Was this translation helpful? Give feedback.
-
Fixed: #636 |
Beta Was this translation helpful? Give feedback.
-
This is a problem we are seeing on our production deployment only. We have not yet been able to reproduce in a staging environment.
We are using nats.py 2.6.0 in a quart application. Each quart worker process has a single nats client connection that is used for all subscriptions.
What we observe is:
await nc.subscribe()
never return. subscribe() seems to be blocked somehowWhen we try to recreate this in our staging environment, the nats client connection works just fine after a reconnect.
Any ideas what might cause subscribe() to block indefinitely?
Beta Was this translation helpful? Give feedback.
All reactions