Multiples minors changes (cgi env, comment, ...)
This commit is contained in:
@@ -21,8 +21,8 @@ void Webserv::_accept_connection(listen_socket &lsocket)
|
||||
::fcntl(accepted_fd, F_SETFL, O_NONBLOCK);
|
||||
|
||||
infos = _extract_infos(addr);
|
||||
Client client(accepted_fd, &lsocket, infos["port"], infos["ip"]);
|
||||
_clients.push_back(client);
|
||||
Client new_client(accepted_fd, &lsocket, infos["port"], infos["ip"]);
|
||||
_clients.push_back(new_client);
|
||||
_epoll_update(accepted_fd, EPOLLIN, EPOLL_CTL_ADD);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user