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
6 changes: 4 additions & 2 deletions redfish-core/lib/log_services.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,10 @@ inline bool checkSizeLimit(int fd, crow::Response& res)
{
BMCWEB_LOG_ERROR("File size {} exceeds maximum allowed size of {}",
size, maxFileSize);
messages::internalError(res);
return false;
// let the offload continue even if size limit is crossed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's increase the size above if we need this. Let's not have no size at all.

// let the dealine timer take care of cancelling the offload.
// messages::internalError(res);
// return false;
}
off_t rc = lseek(fd, 0, SEEK_SET);
if (rc < 0)
Expand Down