Skip to content

v0.1.1

  • v0.1.1
  • 6cc2b51
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • v0.1.1
  • 6cc2b51
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@NimzyMaina NimzyMaina tagged this 28 Oct 12:47
redis-py 8 changed the default socket_timeout from none to 5 s, which equals
rillkit's default block_ms. An idle consumer's XREADGROUP then timed out as the
server was about to reply, logged "Timeout reading from socket" and paused for
5 s before retrying. Messages were still delivered.

- Settings now sets socket_timeout explicitly (default 15 s, REDIS_SOCKET_TIMEOUT)
- Subscribers check the client's effective socket timeout on start and shorten
  their blocking reads to one second under it, with a warning, so a caller-supplied
  client is covered too
- Tests: idle consumer with a short client timeout, idle consumer on default
  Settings, and REDIS_SOCKET_TIMEOUT parsing (all fail without the fix)
- CI: add a job that runs the suite against the newest redis-py, since the
  lockfile pins 7.0.1 and users install the latest
- Docs: document REDIS_SOCKET_TIMEOUT and the block_ms clamp
Assets 2
Loading