Debug in progress, somes fix but not the main problem
This commit is contained in:
@@ -12,13 +12,13 @@ Client::Client()
|
||||
request_complete(false),
|
||||
assigned_server(NULL),
|
||||
assigned_location(NULL),
|
||||
cgi_state(0),
|
||||
cgi_pipe_w_to_child(0),
|
||||
cgi_pipe_r_from_child(0),
|
||||
cgi_pipe_w_to_parent(0),
|
||||
cgi_pipe_r_from_parent(0),
|
||||
cgi_state(CGI_NO_CGI),
|
||||
cgi_pipe_w_to_child(-1),
|
||||
cgi_pipe_r_from_child(-1),
|
||||
cgi_pipe_w_to_parent(-1),
|
||||
cgi_pipe_r_from_parent(-1),
|
||||
cgi_pid(0),
|
||||
_fd(0),
|
||||
_fd(-1),
|
||||
_port(""),
|
||||
_ip(""),
|
||||
_lsocket(NULL)
|
||||
@@ -33,11 +33,11 @@ Client::Client(int afd, listen_socket *lsocket, std::string aport, std::string a
|
||||
request_complete(false),
|
||||
assigned_server(NULL),
|
||||
assigned_location(NULL),
|
||||
cgi_state(0),
|
||||
cgi_pipe_w_to_child(0),
|
||||
cgi_pipe_r_from_child(0),
|
||||
cgi_pipe_w_to_parent(0),
|
||||
cgi_pipe_r_from_parent(0),
|
||||
cgi_state(CGI_NO_CGI),
|
||||
cgi_pipe_w_to_child(-1),
|
||||
cgi_pipe_r_from_child(-1),
|
||||
cgi_pipe_w_to_parent(-1),
|
||||
cgi_pipe_r_from_parent(-1),
|
||||
cgi_pid(0),
|
||||
_fd(afd),
|
||||
_port(aport),
|
||||
@@ -272,11 +272,11 @@ void Client::clear_script()
|
||||
|
||||
void Client::clear_cgi_vars()
|
||||
{
|
||||
cgi_state = false;
|
||||
cgi_pipe_w_to_child = 0;
|
||||
cgi_pipe_r_from_child = 0;
|
||||
cgi_pipe_w_to_parent = 0;
|
||||
cgi_pipe_r_from_parent = 0;
|
||||
cgi_state = CGI_NO_CGI;
|
||||
cgi_pipe_w_to_child = -1;
|
||||
cgi_pipe_r_from_child = -1;
|
||||
cgi_pipe_w_to_parent = -1;
|
||||
cgi_pipe_r_from_parent = -1;
|
||||
cgi_pid = 0;
|
||||
cgi_output.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user