Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,15 @@ private void handleWriteTimeout(final long ret) throws IOException {
long expireTimeVar = expireTime;
if (expireTimeVar != -1 && currentTime > expireTimeVar) {
this.expireTime = -1;
//shutdown write will call AbstractFramedStreamSinkConduit#queueCloseFrames. In some cases it will schedule
//additional packets to adhere to protocol, we need to flush content( this would happen later, if not for
//subsequent close
connection.getSinkChannel().shutdownWrites();
try {
connection.getSinkChannel().flush();
} catch(IOException e) {
UndertowLogger.REQUEST_LOGGER.ioException(e);
}
IoUtils.safeClose(connection);
throw new ClosedChannelException();
}
Expand Down
Loading