--- parser3/src/include/pa_request.h 2002/10/16 08:22:14 1.157 +++ parser3/src/include/pa_request.h 2003/03/11 08:53:03 1.161 @@ -1,14 +1,14 @@ /** @file Parser: request class decl. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_REQUEST_H #define PA_REQUEST_H -static const char* IDENT_REQUEST_H="$Date: 2002/10/16 08:22:14 $"; +static const char* IDENT_REQUEST_H="$Date: 2003/03/11 08:53:03 $"; #include "pa_pool.h" #include "pa_hash.h" @@ -34,7 +34,7 @@ static const char* IDENT_REQUEST_H="$Dat // consts #define MAIN_METHOD_NAME "main" -const uint ANTI_ENDLESS_EXECUTE_RECOURSION=500; +const uint ANTI_ENDLESS_EXECUTE_RECOURSION=1000; // defines @@ -216,6 +216,9 @@ public: bool origins_mode(); + void interrupt() { finterrupted=true; } + bool interrupted() { return finterrupted; } + public: /// info from web server @@ -264,6 +267,8 @@ private: /// current connection SQL_Connection *fconnection; //@} + /// interrupted flag, raised on signals [SIGPIPE] + bool finterrupted; public: // status read methods @@ -346,7 +351,7 @@ private: // connection manipulation private: - void output_result(const VFile& body_file, bool header_only); + void output_result(const VFile& body_file, bool header_only, bool as_attachment); }; /// Auto-object used to save request context across ^try body