Skip to content

Commit 7d74e47

Browse files
committed
Make sure the channel is flushed
Errors didn't get properly flushed (i.e. written).
1 parent 0c0d22d commit 7d74e47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/NIORedis/RESPChannelHandler.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ open class RESPChannelHandler : ChannelDuplexHandler {
5656
try parser.feed(buffer) { respValue in
5757
self.channelRead(context: context, value: respValue)
5858
}
59+
context.flush()
5960
}
6061
catch {
6162
context.fireErrorCaught(error)

0 commit comments

Comments
 (0)