Skip to content

docs: warn about using Session across forked processes#7297

Open
yuchengpersonal wants to merge 1 commit intopsf:mainfrom
yuchengpersonal:claw/contrib/doc-multiprocess-session
Open

docs: warn about using Session across forked processes#7297
yuchengpersonal wants to merge 1 commit intopsf:mainfrom
yuchengpersonal:claw/contrib/doc-multiprocess-session

Conversation

@yuchengpersonal
Copy link
Copy Markdown

Context: #4323 notes that creating a Session before forking can lead to unsafe behavior because connection pools may be shared between processes.

This PR adds a short warning to the "Session Objects" section of the advanced usage docs to help users avoid this pitfall.

What changed

  • Add a warning admonition about fork()/multiprocessing and Session connection pools

How to verify

  • Docs build should succeed (RST-only change)

Risk

  • Low; documentation-only change.

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