Skip to content

v0.0.17

Choose a tag to compare

@sujata-m sujata-m released this 12 Feb 10:00
· 6 commits to master since this release
6b56e4d

What's Changed

  • Fixed Issue-1703
  • Introduced a new helper method shouldRecreateReceiver that inspects errors (e.g., GeneralError, ServiceCommunicationError, errors containing "Unknown error occurred", or when retryable is true) to determine if the receiver should be reinitialized. This change ensures that transient or fatal connection errors do not break the polling loop.
  • Instead of rejecting the promise on errors (which would break the subscription), the updated logic:
    • Logs the error.
    • Checks if the error related to connection then receiver re-creation via shouldRecreateReceiver.
    • Closes the existing receiver if needed and then reinitializes it.
    • Continues polling after a short delay (1 second) to maintain uninterrupted message processing.
  • Changed the lock renewal interval from 30 seconds to 25 seconds. This provides a safer margin to renew locks before they expire.
  • The calling of subscribe and publish methods remain unchanged.
  • Updated CHANGELOG.md

Full Changelog: v0.0.16...v0.0.17