Skip to content

Commit 8575738

Browse files
authored
netty (fix): Fix a blocking issue after handling SSE responses (#3824)
1 parent 664f46b commit 8575738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airframe-http-netty/src/main/scala/wvlet/airframe/http/netty/NettyRequestHandler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class NettyRequestHandler(config: NettyServerConfig, dispatcher: NettyBackend.Fi
110110

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

0 commit comments

Comments
 (0)