go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

fix: ignore timeout on sse

Open icecoffee531 opened this issue 2 years ago β€’ 5 comments

icecoffee531 avatar Jun 17 '22 09:06 icecoffee531

@icecoffee531 Content-Type must be text/event-stream when using SSE

chenquan avatar Jun 17 '22 10:06 chenquan

@icecoffee531 Content-Type must be text/event-stream when using SSE

@chenquan I have set Content-Type to text/event-stream. Because of the timeoutHandler will set context with cancel, http request need skip timeoutHandler to ingore context timeout like websocket to ensure keep-alive connection

icecoffee531 avatar Jun 17 '22 10:06 icecoffee531

duplicate #2032

chenquan avatar Jun 19 '22 01:06 chenquan

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


duplicate #2032

Issues-translate-bot avatar Jun 19 '22 01:06 Issues-translate-bot

Duplicate of #2041

kevwan avatar Feb 17 '24 07:02 kevwan