Skip to content

Make with_stop domain-safe - #68

Open
apeschar wants to merge 1 commit into
aantron:masterfrom
apeschar:domain-safety
Open

Make with_stop domain-safe#68
apeschar wants to merge 1 commit into
aantron:masterfrom
apeschar:domain-safety

Conversation

@apeschar

@apeschar apeschar commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

When using Lambdasoup across multiple domains concurrently, with_soup starts failing with:

Soup.with_stop: internal error: !result = None

This seems to be caused by the unsafe incrementing of the ID in generate_id.

Fixed by using a local exception instead of reusing the same Stop exception with different IDs. This does not require any refs or synchronization, and is less code.

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