diff options
Diffstat (limited to 'apps/JAWS/server/HTTP_Server.h')
-rw-r--r-- | apps/JAWS/server/HTTP_Server.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/apps/JAWS/server/HTTP_Server.h b/apps/JAWS/server/HTTP_Server.h index 8d39e193642..9e8534c4cbd 100644 --- a/apps/JAWS/server/HTTP_Server.h +++ b/apps/JAWS/server/HTTP_Server.h @@ -35,8 +35,10 @@ #include "ace/Null_Mutex.h" #include "ace/Global_Macros.h" +ACE_BEGIN_VERSIONED_NAMESPACE_DECL // Forward declaration. class ACE_Proactor; +ACE_END_VERSIONED_NAMESPACE_DECL #if defined (ACE_HAS_THREAD_SAFE_ACCEPT) typedef ACE_LOCK_SOCK_Acceptor<ACE_SYNCH_NULL_MUTEX> HTTP_SOCK_Acceptor; @@ -61,13 +63,13 @@ public: // Exit hooks protected: - virtual int thread_per_request (void); + virtual int thread_per_request (HTTP_Handler_Factory &factory); // Thread Per Request implementation virtual int asynch_thread_pool (void); // Asynch Thread Pool implementation - virtual int synch_thread_pool (void); + virtual int synch_thread_pool (HTTP_Handler_Factory &factory); // Synch Thread Pool implementation private: @@ -78,6 +80,7 @@ private: int strategy_; int backlog_; int throttle_; + bool caching_; ACE_Thread_Manager tm_; HTTP_Acceptor acceptor_; }; @@ -88,15 +91,18 @@ class Synch_Thread_Pool_Task : public ACE_Task<ACE_NULL_SYNCH> // // = DESCRIPTION // Describe this and the others below. + // NOTE: this class was modified to make caching disabling possible { public: Synch_Thread_Pool_Task (HTTP_Acceptor &acceptor, ACE_Thread_Manager &tm, - int threads); + int threads, + HTTP_Handler_Factory &factory); virtual int svc (void); private: HTTP_Acceptor &acceptor_; + HTTP_Handler_Factory &factory_; }; class Thread_Per_Request_Task : public ACE_Task<ACE_NULL_SYNCH> @@ -106,11 +112,13 @@ class Thread_Per_Request_Task : public ACE_Task<ACE_NULL_SYNCH> // = DESCRIPTION // Spawns a new thread for every new incoming connection. The // handle below is the socket stream of the incoming connection. + // NOTE: this class was modified to make caching disabling possible { public: Thread_Per_Request_Task (ACE_HANDLE handle, ACE_Thread_Manager &tm, - int &grp_id); + int &grp_id, + HTTP_Handler_Factory &factory); virtual int open (void *args = 0); virtual int close (u_long); virtual int svc (void); @@ -118,6 +126,7 @@ public: private: ACE_HANDLE handle_; int &grp_id_; + HTTP_Handler_Factory &factory_; }; // This only works on Win32 |