--- parser3/src/main/pa_http.C 2020/12/16 15:04:47 1.111 +++ parser3/src/main/pa_http.C 2020/12/17 13:38:45 1.113 @@ -14,7 +14,7 @@ #include "pa_vfile.h" #include "pa_random.h" -volatile const char * IDENT_PA_HTTP_C="$Id: pa_http.C,v 1.111 2020/12/16 15:04:47 moko Exp $" IDENT_PA_HTTP_H; +volatile const char * IDENT_PA_HTTP_C="$Id: pa_http.C,v 1.113 2020/12/17 13:38:45 moko Exp $" IDENT_PA_HTTP_H; #ifdef _MSC_VER #include @@ -1056,6 +1056,7 @@ ssize_t HTTPD_request::pa_recv(int sockf ssize_t result=recv(sockfd, buffer, len, 0); ALARM(0); LOG(pa_log("httpd [%d] recv got %d bytes", sockfd, result)); + LOG(pa_log("httpd [%d] %s", sockfd, buffer)); return result; } } @@ -1168,7 +1169,8 @@ size_t HTTPD_Connection::read_post(char } size_t HTTPD_Connection::send_body(const void *buf, size_t size) { - LOG(pa_log("httpd [%d] response %d", sock, size)); + LOG(pa_log("httpd [%d] response %d bytes", sock, size)); + LOG(pa_log("httpd [%d] %s", sock, buf)); if(send(sock, (const char*)buf, size, 0) != (ssize_t)size) { int no=pa_socks_errno(); throw Exception("httpd.write", 0, "error sending response: %s (%d)", pa_socks_strerr(no), no); @@ -1225,7 +1227,9 @@ HTTPD_Server::HTTPD_MODE HTTPD_Server::m void HTTPD_Server::set_mode(const String &value){ if(value == "sequental") mode = SEQUENTIAL; +#ifdef HAVE_TLS else if (value == "threaded") mode = MULTITHREADED; +#endif #ifdef _MSC_VER else throw Exception("httpd.mode", &value, "$main:HTTPD.mode must be 'sequental' or 'threaded'"); #else