Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastapi 请求断开信号接收不到 #435

Open
Yuang-Deng opened this issue Feb 18, 2025 · 1 comment
Open

fastapi 请求断开信号接收不到 #435

Yuang-Deng opened this issue Feb 18, 2025 · 1 comment

Comments

@Yuang-Deng
Copy link

前端用sse协议,后端如何判断链接断开,Fastapi可以通过await request.is_disconnected()来判断,但是使用lazyllm中的FastapiApp不能用这个方法

@wzh1994
Copy link
Contributor

wzh1994 commented Feb 19, 2025

麻烦提供一下问题的复现方式吧,可以把与业务相关的逻辑去掉,仅提供脱离业务的最小复现即可

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

No branches or pull requests

2 participants