Skip to content

Async cookie persistence #2

Description

@Kludex

Originally opened by @tomchristie on 2019-03-21 13:58:49 in encode/httpx

Some cookie stores will be on-disk. Writing to the cookie store will be a blocking operation. Really we ought to make sure that any write to an on-disk cookie jar is performed within a threadpool.

Starlette's run_in_threadpool may be useful.

Questions:

  • Can we differentiate between in-memory and on-disk cases?
  • What is the default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions