cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.04k stars 491 forks source link

服务端如何感知客户端时候中断连接 #1112

Closed liqiaoyang-pm closed 3 months ago

liqiaoyang-pm commented 3 months ago

最近在做一个LLM需求,需要客户端中断请求后服务端可以感知到请求中断,用gin中的ctx.request().context().done(),函数可以感知到,请问在hertz中应该如何实现?

li-jin-gou commented 3 months ago

issue 的问题同 https://github.com/cloudwego/hertz/issues/855 ,目前不支持,待 pr 合入