Skip to content

Commit

Permalink
[serving] update default chunked read timeout to 120 seconds for sage…
Browse files Browse the repository at this point in the history
…maker, add requestId to log for timeout
  • Loading branch information
siddvenk committed Feb 7, 2025
1 parent d23acca commit f76d8a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ void sendOutput(Output output, ChannelHandlerContext ctx) {
}
ctx.writeAndFlush(LastHttpContent.EMPTY_LAST_CONTENT);
} catch (InterruptedException | IllegalStateException e) {
logger.warn("Chunk reading interrupted", e);
String requestId = NettyUtils.getRequestId(ctx.channel());
logger.warn("RequestId=[{}] Chunk reading interrupted", requestId, e);
ctx.disconnect();
ctx.newFailedFuture(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public SslContext getSslContext() throws IOException, GeneralSecurityException {
* @return the ChunkedBytesSupplier read time in seconds
*/
public int getChunkedReadTimeout() {
return getIntProperty(CHUNKED_READ_TIMEOUT, 60);
return getIntProperty(CHUNKED_READ_TIMEOUT, 120);
}

/**
Expand Down

0 comments on commit f76d8a5

Please sign in to comment.