Back to index

php5  5.3.10
fpm_request.h
Go to the documentation of this file.
00001 
00002        /* $Id: fpm_request.h,v 1.4 2008/07/20 01:47:16 anight Exp $ */
00003        /* (c) 2007,2008 Andrei Nigmatulin */
00004 
00005 #ifndef FPM_REQUEST_H
00006 #define FPM_REQUEST_H 1
00007 
00008 void fpm_request_accepting();                           /* hanging in accept() */
00009 void fpm_request_reading_headers();                     /* start reading fastcgi request from very first byte */
00010 void fpm_request_info();                                /* not a stage really but a point in the php code, where all request params have become known to sapi */
00011 void fpm_request_executing();                           /* the script is executing */
00012 void fpm_request_end(TSRMLS_D);                         /* request ended: script response have been sent to web server */
00013 void fpm_request_finished();                            /* request processed: cleaning current request */
00014 
00015 struct fpm_child_s;
00016 struct timeval;
00017 
00018 void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *tv, int terminate_timeout, int slowlog_timeout);
00019 int fpm_request_is_idle(struct fpm_child_s *child);
00020 const char *fpm_request_get_stage_name(int stage);
00021 int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv);
00022 
00023 enum fpm_request_stage_e {
00024        FPM_REQUEST_ACCEPTING = 1,
00025        FPM_REQUEST_READING_HEADERS,
00026        FPM_REQUEST_INFO,
00027        FPM_REQUEST_EXECUTING,
00028        FPM_REQUEST_END,
00029        FPM_REQUEST_FINISHED
00030 };
00031 
00032 #endif