Skip to content

Commit

Permalink
Bug fix crash due to POST upload consuming all disk space
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Meeuwisse <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Nadav Har'El <[email protected]>
  • Loading branch information
MichaelMeeuwisse authored and nyh committed Feb 14, 2016
1 parent 2bcede8 commit a0cf9fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/httpserver/connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,14 @@ void connection::do_read()

void connection::on_complete_multiplart()
{
multipart.close();
try {
multipart.close();
} catch(const std::exception& _e) {
std::string e(_e.what());

std::cerr << e << std::endl;
reply_ = reply::stock_reply(reply::internal_server_error, &e);
}
do_write();
}

Expand Down

0 comments on commit a0cf9fa

Please sign in to comment.