Skip to content

Commit

Permalink
lil tweak for more speeeeeeeeeeeeeeeeeeeeeeeed 🦷
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddyMSchubert committed Dec 16, 2024
1 parent 037ac96 commit 7e8dd8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void Server::updatePoll()
fds.push_back(listen_pfd);

// poll
int ret = poll(fds.data(), fds.size(), 100);
int ret = poll(fds.data(), fds.size(), 10);
if (ret < 0)
{
Logger::Log(LogLevel::ERROR, "Poll error: " + std::string(strerror(errno)) + " -> means that there is no data to read.");
Expand Down
2 changes: 1 addition & 1 deletion src/Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void Socket::sendData(Response &response)
std::string Socket::receiveData()
{
std::string data;
int size = std::min(1024, static_cast<int>(_config.getMaxPackageSize() + 1));
int size = std::min(1048576, static_cast<int>(_config.getMaxPackageSize() + 1));
char buffer[size];
ssize_t received;

Expand Down

0 comments on commit 7e8dd8e

Please sign in to comment.