mirror of
https://github.com/jlengrand/ktor.git
synced 2026-03-10 08:31:20 +00:00
Fix Netty upgrade to wait for all jobs completion
Too early channel close caused Windows to mark connection as aborted so test client is unable to read close frame
This commit is contained in:
@@ -99,6 +99,7 @@ internal class NettyHttp1ApplicationResponse(call: NettyApplicationCall,
|
||||
}
|
||||
|
||||
(call as NettyApplicationCall).responseWriteJob.join()
|
||||
job.join()
|
||||
|
||||
context.channel().close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user