--- parser3/src/include/pa_request.h 2002/10/16 08:22:14 1.157 +++ parser3/src/include/pa_request.h 2003/01/21 15:51:11 1.160 @@ -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/01/21 15:51:11 $"; #include "pa_pool.h" #include "pa_hash.h" @@ -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