Fixed big problem with CGI handling
+ remains somes minors problems
This commit is contained in:
12
memo.txt
12
memo.txt
@@ -23,6 +23,9 @@ For non blocking CGI :
|
||||
|
||||
- check status in autoindex
|
||||
|
||||
- merge changes from hugo5 to master (attention a pas casse svp :clown:)
|
||||
|
||||
|
||||
----Priorité modérée------------------------
|
||||
- namespace utils ?
|
||||
- change "std::string" to reference "std::string &" in most functions
|
||||
@@ -47,3 +50,12 @@ and add "const" if apropriate.
|
||||
- change "std::string" to reference "std::string &" in most functions
|
||||
and add "const" if apropriate.
|
||||
- Il faut vérifier le path de la requête, voir si le serveur est bien censé délivrer cette ressource et si le client y a accès, avant d'appeler le CGI.
|
||||
|
||||
Valgrind error RESOLVED ! :
|
||||
==847174== 1,314 bytes in 1 blocks are definitely lost in loss record 1 of 1
|
||||
==847174== at 0x483BE63: operator new(unsigned long) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
|
||||
==847174== by 0x49AA35D: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
|
||||
==847174== by 0x49ABB52: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
|
||||
==847174== by 0x426BC5: Webserv::_read_cgi_output(cgi_pipe_rfd&) (run_loop.cpp:39) // (LUKE: its an string.append() call)
|
||||
==847174== by 0x427962: Webserv::run() (run_loop.cpp:153)
|
||||
==847174== by 0x4052E9: main (main.cpp:38)
|
||||
|
||||
Reference in New Issue
Block a user