Slow requests due to possibly incorrect break. #1868
-
With FastAPI, under certain circumstances I was noticing some calls were very slow. It turned out that in starlette version 0.20.1, a break was added into the This break omits the final I am not sure why this results in a "slow" response and not in something more fatal, I guess my knowledge of async python is too limited... (is there something timing out?). Also I am not sure why this occurs not for all my calls; after I raise in fastapi, the follow up REST request is fast again. A "fix" was to close the Is this a real issue or was this break intended to behave as it does? Is it likely that the issue is due to invalid usage from my side? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yeah, this is correct. I didn't see it soon enough. That logic was removed. Thanks 👍 |
Beta Was this translation helpful? Give feedback.
Yeah, this is correct. I didn't see it soon enough.
That logic was removed. Thanks 👍