Skip to content

Commit

Permalink
Merge pull request #138 from ilovenoah/create-pull-request/patch
Browse files Browse the repository at this point in the history
feature/formatting-by-clang-format-on-github-actions
  • Loading branch information
ilovenoah authored Mar 2, 2024
2 parents c388a47 + aa3856d commit 645a9c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/response/CGIHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,9 @@ void CGIHandler::setCGIPhase(CGIHandler::cgiphase phase) {

CGIHandler::cgiphase CGIHandler::detectCGIPhase() const {
CGIHandler::cgiphase phase(this->_phase);
if (std::difftime(std::time(NULL), this->_startSec) > CGIHandler::_timeoutSec || this->_exeTime > CGI_LIMIT_LOCAL_REDIR) {
if (std::difftime(std::time(NULL), this->_startSec) >
CGIHandler::_timeoutSec ||
this->_exeTime > CGI_LIMIT_LOCAL_REDIR) {
utils::x_kill(this->_pid, SIGTERM);
if (this->_phase == CGIHandler::CGIFIN) {
return CGIHandler::CGIFIN;
Expand Down

0 comments on commit 645a9c4

Please sign in to comment.