Skip to content

mitmdump: always select first valid gateway id - #26

Merged
recursivetree merged 2 commits into
Roachbones:mainfrom
recursivetree:always-select-valid-gateway-id
Jun 3, 2025
Merged

recursivetree merged 2 commits into
Roachbones:mainfrom
recursivetree:always-select-valid-gateway-id

Conversation

@recursivetree

@recursivetree recursivetree commented May 31, 2025

Copy link
Copy Markdown
Collaborator

As long as (PR #23 disable buffering for gateway recording) isn't merged, the gateway index can corrupt and the first free gateway recording id does not necessarily correspond with the number of gateway_index entries.

This PR fixes it by scanning the gateway index for the first guaranteed free number based on the contents of the index file.

Unless someone notices something, I'll merge this in 1-2 days.

@recursivetree recursivetree changed the title mitmdump: always select valid gateway mitmdump: always select first valid gateway id May 31, 2025
@recursivetree
recursivetree merged commit eeeeae0 into Roachbones:main Jun 3, 2025
@recursivetree
recursivetree deleted the always-select-valid-gateway-id branch June 3, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant