Closed siamak-haschemi closed 7 years ago
you can set operation timeout here EventStoreBuilder.operationTimeout(...)
(default 7 seconds).
but I think you are facing the bug, that was fixed in v1.8.0 (https://github.com/msemys/esjc/pull/20). there is a bug in v1.0.0 - v1.7.0 - operation timeouts not triggering when there is no server response (as a result, operation could hang indefinitely).
could you try with v1.8.0 or v1.8.1?
Closing this issue for now but feel free to reopen it if you have any further questions.
We sometimes see the problem, that the esjc library does block forever when using subscriptions. The interesting part of our thread-dump:
We have about 60 Subscriptions using the same connection. All Threads of the 60 Subscriptions show the same WAITING status.
We use the esjc 1.7.0 release.
My question is, if there are any timeouts we can set to avoid blocking forever. Our code could handle this timeout with retrying.
Thank you for your help.