Skip to content

Commit

Permalink
update: 타임아웃 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zerone015 committed Apr 7, 2023
1 parent 3f78ca3 commit 0bb87cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgi/Cgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void Cgi::execute(const HttpRequest& request_obj,
close(pipe_fds_[WRITE]);
}
body_ = request_obj.getBody();
timeout_ = std::time(NULL) + CGI_TIMEOUT;
timeout_ = std::time(NULL) + CGI_TIMEOUT + 10L;
}

void Cgi::write(Selector& selector) {
Expand Down
1 change: 1 addition & 0 deletions src/server/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ void Client::executeCgiIO(Selector& selector) {
// Error::log(Error::INFO[ECGI], e.what());
}
this->setTimeout();
this->setSessionTimeout();
}

void Client::closeConnection() const {
Expand Down

0 comments on commit 0bb87cf

Please sign in to comment.