mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
style: clean-ups
This commit is contained in:
@@ -106,7 +106,7 @@ int Server::delete_client(std::map<int, Client *> &client_map, int fd)
|
|||||||
ret = epoll_ctl(_epoll_fd, EPOLL_CTL_DEL, fd, NULL);
|
ret = epoll_ctl(_epoll_fd, EPOLL_CTL_DEL, fd, NULL);
|
||||||
close(fd);
|
close(fd);
|
||||||
client_map[fd]->clear();
|
client_map[fd]->clear();
|
||||||
// delete (client_map[fd]);
|
delete (client_map[fd]);
|
||||||
client_map.erase(fd);
|
client_map.erase(fd);
|
||||||
DBOUT << RED <<
|
DBOUT << RED <<
|
||||||
"deleting client "
|
"deleting client "
|
||||||
@@ -257,7 +257,6 @@ void Server::run(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/* close(server_sock.getSocketFd()); */
|
|
||||||
DBOUT << RED << "end;" << ENDL;
|
DBOUT << RED << "end;" << ENDL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,7 @@
|
|||||||
|
|
||||||
#include "webserv.hpp"
|
#include "webserv.hpp"
|
||||||
#include "Client.hpp"
|
#include "Client.hpp"
|
||||||
#include "ServerConfig.hpp"
|
|
||||||
#include "Socket.hpp"
|
#include "Socket.hpp"
|
||||||
#include "parse.hpp"
|
|
||||||
|
|
||||||
|
|
||||||
class Client;
|
class Client;
|
||||||
|
|
||||||
|
|||||||
@@ -87,4 +87,4 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -7,6 +7,4 @@
|
|||||||
#include "TOMLNode.hpp"
|
#include "TOMLNode.hpp"
|
||||||
#include "TOMLParser.hpp"
|
#include "TOMLParser.hpp"
|
||||||
|
|
||||||
TOMLMap *parse(char *filename);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user