--- parser3/src/include/pa_request.h 2002/10/16 08:22:14 1.157 +++ parser3/src/include/pa_request.h 2002/12/19 10:17:41 1.159 @@ -8,7 +8,7 @@ #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: 2002/12/19 10:17:41 $"; #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