Skip to content

Commit

Permalink
Rescue IndexError in first? and move on to next segment (#864)
Browse files Browse the repository at this point in the history
If a msg file is a few bytes larger than expected, first? will throw an IndexError and close the queue. This changes that behavior to instead rescue that IndexError and try to move on to the next segment file. Same fix as for shift? in #671

fixes #669 (again 🙂)
  • Loading branch information
viktorerlingsson authored and kickster97 committed Dec 18, 2024
1 parent e82da30 commit 5b8332a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Queues will no longer be closed if file size is incorrect. Fixes [#669](https://github.com/cloudamqp/lavinmq/issues/669)

## [2.0.2] - 2024-11-25

### Fixed
Expand Down

0 comments on commit 5b8332a

Please sign in to comment.