Skip to content

Commit

Permalink
last changes...
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston HAYTER committed Nov 2, 2021
1 parent fc7495d commit c10e66e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions config/macos_webserv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ server {
location ext .php {
limit_except GET POST;
cgi_exec /usr/local/bin/php-cgi;
return 307 php-cgi;
}
location ext .py {
cgi_exec ./www/hello.py;
Expand Down Expand Up @@ -49,14 +48,12 @@ server {
root ./www;
index subject.html;
location / {}
location /text {
return 204 "this is a return directive with text";
}
location /uri {
return 301 http://youtube.com;
}
}
server {
listen 8080;
listen 8083;
index notExist;
server_name srv_four;
Expand Down
5 changes: 1 addition & 4 deletions config/ubuntu_webserv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ server {
location ext .php {
limit_except GET POST;
cgi_exec /usr/bin/php-cgi;
return 307 php-cgi;
}
location ext .py {
cgi_exec ./www/hello.py;
Expand Down Expand Up @@ -49,14 +48,12 @@ server {
root ./www;
index subject.html;
location / {}
location /text {
return 204 "this is a return directive with text";
}
location /uri {
return 301 http://youtube.com;
}
}
server {
listen 8080;
listen 8083;
index notExist;
server_name srv_four;
Expand Down
4 changes: 2 additions & 2 deletions src/web/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ void Server::routine()
continue;
else if (_fds[i].revents & POLLHUP)
_disconnectDevice(i);
else if (_fds[i].revents & POLLOUT)
_sendResponses(i);
else if (_fds[i].revents & POLLIN)
{
if (_isServerIndex(i))
Expand All @@ -83,8 +85,6 @@ void Server::routine()
_buildResponses(i);
}
}
else if (_fds[i].revents & POLLOUT)
_sendResponses(i);
else
stop(-1);
}
Expand Down

0 comments on commit c10e66e

Please sign in to comment.