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?
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_threadpoolmay be useful.Questions: