Skip to content

Commit

Permalink
netty (fix): Fix a blocking issue after handling SSE responses (#3824)
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial authored Feb 8, 2025
1 parent 664f46b commit 8575738
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class NettyRequestHandler(config: NettyServerConfig, dispatcher: NettyBackend.Fi

if (resp.isContentTypeEventStream && resp.message.isEmpty) {
// Read SSE stream
val c = RxRunner.runContinuously(resp.events) {
val c = RxRunner.run(resp.events) {
case OnNext(e: ServerSentEvent) =>
val event = e.toContent
val buf = Unpooled.copiedBuffer(event.getBytes("UTF-8"))
Expand Down

0 comments on commit 8575738

Please sign in to comment.