-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | include/sitecing/sitecing_interface.h | 6 | ||||
-rw-r--r-- | lib/Makefile.am | 2 | ||||
-rw-r--r-- | src/sitecing-fastcgi.cc | 1 |
4 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index fde326b..bb1557a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ -AC_INIT([sitecing], [0.0.1], [sitecing-bugs@klever.net]) +AC_INIT([sitecing], [0.0.2], [sitecing-bugs@klever.net]) AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([dist-bzip2]) AC_PROG_INSTALL AC_PROG_AWK diff --git a/include/sitecing/sitecing_interface.h b/include/sitecing/sitecing_interface.h index 0cba2bb..f0210d6 100644 --- a/include/sitecing/sitecing_interface.h +++ b/include/sitecing/sitecing_interface.h @@ -20,17 +20,21 @@ namespace sitecing { class sitecing_interface { public: /** * Pointer to the output stream. */ ostream *out; + /** + * Serial number of request being processed. + */ + long serial; /** * The default constructor doesn't do much. */ - sitecing_interface() : out(0) {} + sitecing_interface() : out(0), serial(0) {} /** * The constructor initializes the output stream pointer. * @param o the value to initialize the output stream pointer with. */ sitecing_interface(ostream* o) : out(o) {} }; diff --git a/lib/Makefile.am b/lib/Makefile.am index 53d8182..496177b 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -16,7 +16,7 @@ libsitecing_la_SOURCES = \ sitespace.cc \ configuration.cc \ util.cc sitecing_util.cc \ scoreboard.cc \ process_manager.cc libsitecing_la_LDFLAGS = \ - -version-info 1:0:0 + -version-info 2:0:0 diff --git a/src/sitecing-fastcgi.cc b/src/sitecing-fastcgi.cc index 57aba60..4768e8f 100644 --- a/src/sitecing-fastcgi.cc +++ b/src/sitecing-fastcgi.cc @@ -160,12 +160,13 @@ void sitecing_fastcgi_pm::process(int slot) { sslot->state = scoreboard_slot::state_accept; fcgi_interface fi(fs); sslot->state = scoreboard_slot::state_processing; if(multi) sl.unlock(); cgi_gateway gw(fi); + ++scif.serial; scif.prepare(&gw); try { component_path = konforka::normalize_path(gw.path_info(),konforka::strip_leading_slash|konforka::strip_trailing_slash); string full_component_path; string sitecing_path_info; while(true) { |