public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Split StandardApplicationPool to its own file.
Hongli Lai (Phusion) (author)
Sat Mar 22 05:59:51 -0700 2008
commit  9f0d08247e34003ef792ea7f664c76b350373b21
tree    6b76c4fde3bb87670fa7a6780bc83964252787e5
parent  0e8110d0392ae39dbb4b2e98022f40f31d0744db
...
84
85
86
87
 
 
88
89
90
...
162
163
164
 
165
166
167
168
169
 
170
171
172
173
174
 
175
176
177
...
84
85
86
 
87
88
89
90
91
...
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
0
@@ -84,7 +84,8 @@ class APACHE2
0
   OBJECTS = {
0
     'Configuration.o' => %w(Configuration.cpp Configuration.h),
0
     'Hooks.o' => %w(Hooks.cpp Hooks.h
0
- Configuration.h ApplicationPool.h ApplicationPoolClientServer.h
0
+ Configuration.h ApplicationPool.h StandardApplicationPool.h
0
+ ApplicationPoolClientServer.h
0
         SpawnManager.h Exceptions.h Application.h MessageChannel.h
0
         Utils.h),
0
     'Utils.o' => %w(Utils.cpp Utils.h)
0
@@ -162,16 +163,19 @@ class TEST
0
       ../ext/apache2/SpawnManager.h
0
       ../ext/apache2/Application.h),
0
     'ApplicationPoolServerTest.o' => %w(ApplicationPoolServerTest.cpp
0
+ ../ext/apache2/StandardApplicationPool.h
0
       ../ext/apache2/ApplicationPoolClientServer.h),
0
     'ApplicationPoolServer_ApplicationPoolTest.o' => %w(ApplicationPoolServer_ApplicationPoolTest.cpp
0
       ApplicationPoolTest.cpp
0
       ../ext/apache2/ApplicationPoolClientServer.h
0
       ../ext/apache2/ApplicationPool.h
0
+ ../ext/apache2/StandardApplicationPool.h
0
       ../ext/apache2/SpawnManager.h
0
       ../ext/apache2/Application.h),
0
     'StandardApplicationPoolTest.o' => %w(StandardApplicationPoolTest.cpp
0
       ApplicationPoolTest.cpp
0
       ../ext/apache2/ApplicationPool.h
0
+ ../ext/apache2/StandardApplicationPool.h
0
       ../ext/apache2/SpawnManager.h
0
       ../ext/apache2/Application.h),
0
     'UtilsTest.o' => %w(UtilsTest.cpp ../ext/apache2/Utils.h)
...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
29
30
31
...
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
...
2
3
4
 
 
 
 
 
 
 
 
 
 
5
 
 
 
 
 
 
 
6
 
 
 
 
 
7
8
9
10
...
145
146
147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
149
150
0
@@ -2,30 +2,9 @@
0
 #define _PASSENGER_APPLICATION_POOL_H_
0
 
0
 #include <boost/shared_ptr.hpp>
0
-#include <boost/weak_ptr.hpp>
0
-#include <boost/thread.hpp>
0
-#include <boost/thread/mutex.hpp>
0
-#include <boost/thread/condition.hpp>
0
-#include <boost/bind.hpp>
0
-
0
-#include <string>
0
-#include <map>
0
-#include <list>
0
-
0
 #include <sys/types.h>
0
-#include <sys/stat.h>
0
-#include <unistd.h>
0
-#include <ctime>
0
-#include <cerrno>
0
-#ifdef TESTING_APPLICATION_POOL
0
- #include <cstdlib>
0
-#endif
0
 
0
-#ifdef PASSENGER_USE_DUMMY_SPAWN_MANAGER
0
- #include "DummySpawnManager.h"
0
-#else
0
- #include "SpawnManager.h"
0
-#endif
0
+#include "Application.h"
0
 
0
 namespace Passenger {
0
 
0
@@ -166,476 +145,6 @@ public:
0
   virtual pid_t getSpawnServerPid() const = 0;
0
 };
0
 
0
-class ApplicationPoolServer;
0
-
0
-/****************************************************************
0
- *
0
- * See "doc/ApplicationPool algorithm.txt" for a more readable
0
- * and detailed description of the algorithm implemented here.
0
- *
0
- ****************************************************************/
0
-
0
-/**
0
- * A standard implementation of ApplicationPool for single-process environments.
0
- *
0
- * The environment may or may not be multithreaded - StandardApplicationPool is completely
0
- * thread-safe. Apache with the threading MPM is an example of a multithreaded single-process
0
- * environment.
0
- *
0
- * This class is unusable in multi-process environments such as Apache with the prefork MPM.
0
- * The reasons are as follows:
0
- * - StandardApplicationPool uses threads internally. Because threads disappear after a fork(),
0
- * a StandardApplicationPool object will become unusable after a fork().
0
- * - StandardApplicationPool stores its internal cache on the heap. Different processes
0
- * cannot share their heaps, so they will not be able to access each others' pool cache.
0
- * - StandardApplicationPool has a connection to the spawn server. If there are multiple
0
- * processes, and they all use the spawn servers's connection at the same time without
0
- * some sort of synchronization, then bad things will happen.
0
- *
0
- * (Of course, StandardApplicationPool <em>is</em> usable if each process creates its own
0
- * StandardApplicationPool object, but that would defeat the point of having a shared pool.)
0
- *
0
- * For multi-process environments, one should use ApplicationPoolServer instead.
0
- *
0
- * @ingroup Support
0
- */
0
-class StandardApplicationPool: public ApplicationPool {
0
-private:
0
- static const int DEFAULT_MAX_IDLE_TIME = 120;
0
- static const int DEFAULT_MAX_POOL_SIZE = 20;
0
-
0
- friend class ApplicationPoolServer;
0
- struct AppContainer;
0
-
0
- typedef shared_ptr<AppContainer> AppContainerPtr;
0
- typedef list<AppContainerPtr> AppContainerList;
0
- typedef shared_ptr<AppContainerList> AppContainerListPtr;
0
- typedef map<string, AppContainerListPtr> ApplicationMap;
0
-
0
- struct AppContainer {
0
- ApplicationPtr app;
0
- time_t lastUsed;
0
- unsigned int sessions;
0
- AppContainerList::iterator iterator;
0
- AppContainerList::iterator ia_iterator;
0
- };
0
-
0
- struct SharedData {
0
- mutex lock;
0
- condition activeOrMaxChanged;
0
-
0
- ApplicationMap apps;
0
- unsigned int max;
0
- unsigned int count;
0
- unsigned int active;
0
- AppContainerList inactiveApps;
0
- map<string, time_t> restartFileTimes;
0
- };
0
-
0
- typedef shared_ptr<SharedData> SharedDataPtr;
0
-
0
- struct SessionCloseCallback {
0
- SharedDataPtr data;
0
- weak_ptr<AppContainer> container;
0
-
0
- SessionCloseCallback(SharedDataPtr data,
0
- const weak_ptr<AppContainer> &container) {
0
- this->data = data;
0
- this->container = container;
0
- }
0
-
0
- void operator()() {
0
- mutex::scoped_lock l(data->lock);
0
- AppContainerPtr container(this->container.lock());
0
-
0
- if (container == NULL) {
0
- return;
0
- }
0
-
0
- ApplicationMap::iterator it;
0
- it = data->apps.find(container->app->getAppRoot());
0
- if (it != data->apps.end()) {
0
- AppContainerListPtr list(it->second);
0
- container->lastUsed = time(NULL);
0
- container->sessions--;
0
- if (container->sessions == 0) {
0
- list->erase(container->iterator);
0
- list->push_front(container);
0
- container->iterator = list->begin();
0
- data->inactiveApps.push_back(container);
0
- container->ia_iterator = data->inactiveApps.end();
0
- container->ia_iterator--;
0
- }
0
- data->active--;
0
- data->activeOrMaxChanged.notify_all();
0
- }
0
- }
0
- };
0
-
0
- #ifdef PASSENGER_USE_DUMMY_SPAWN_MANAGER
0
- DummySpawnManager spawnManager;
0
- #else
0
- SpawnManager spawnManager;
0
- #endif
0
- SharedDataPtr data;
0
- thread *cleanerThread;
0
- bool detached;
0
- bool done;
0
- unsigned int maxIdleTime;
0
- condition cleanerThreadSleeper;
0
-
0
- // Shortcuts for instance variables in SharedData. Saves typing in get().
0
- mutex &lock;
0
- condition &activeOrMaxChanged;
0
- ApplicationMap &apps;
0
- unsigned int &max;
0
- unsigned int &count;
0
- unsigned int &active;
0
- AppContainerList &inactiveApps;
0
- map<string, time_t> &restartFileTimes;
0
-
0
- bool needsRestart(const string &appRoot) {
0
- string restartFile(appRoot);
0
- restartFile.append("/tmp/restart.txt");
0
-
0
- struct stat buf;
0
- bool result;
0
- if (stat(restartFile.c_str(), &buf) == 0) {
0
- int ret;
0
- #ifdef TESTING_APPLICATION_POOL
0
- if (getenv("nextRestartTxtDeletionShouldFail") != NULL) {
0
- unsetenv("nextRestartTxtDeletionShouldFail");
0
- ret = -1;
0
- errno = EACCES;
0
- } else {
0
- ret = unlink(restartFile.c_str());
0
- }
0
- #else
0
- do {
0
- ret = unlink(restartFile.c_str());
0
- } while (ret == -1 && errno == EAGAIN);
0
- #endif
0
- if (ret == 0 || errno == ENOENT) {
0
- restartFileTimes.erase(appRoot);
0
- result = true;
0
- } else {
0
- map<string, time_t>::const_iterator it;
0
-
0
- it = restartFileTimes.find(appRoot);
0
- if (it == restartFileTimes.end()) {
0
- result = true;
0
- } else {
0
- result = buf.st_mtime != restartFileTimes[appRoot];
0
- }
0
- restartFileTimes[appRoot] = buf.st_mtime;
0
- }
0
- } else {
0
- restartFileTimes.erase(appRoot);
0
- result = false;
0
- }
0
- return result;
0
- }
0
-
0
- void cleanerThreadMainLoop() {
0
- mutex::scoped_lock l(lock);
0
- while (!done) {
0
- xtime xt;
0
- xtime_get(&xt, TIME_UTC);
0
- xt.sec += maxIdleTime + 1;
0
- if (cleanerThreadSleeper.timed_wait(l, xt)) {
0
- // Condition was woken up.
0
- if (done) {
0
- // StandardApplicationPool is being destroyed.
0
- break;
0
- } else {
0
- continue;
0
- }
0
- }
0
-
0
- time_t now = time(NULL);
0
- AppContainerList::iterator it;
0
- for (it = inactiveApps.begin(); it != inactiveApps.end(); it++) {
0
- AppContainer &container(*it->get());
0
- ApplicationPtr app(container.app);
0
- AppContainerListPtr appList(apps[app->getAppRoot()]);
0
-
0
- if (now - container.lastUsed > (time_t) maxIdleTime) {
0
- P_TRACE("Cleaning idle app " << app->getAppRoot() <<
0
- " (PID " << app->getPid() << ")");
0
- appList->erase(container.iterator);
0
-
0
- AppContainerList::iterator prev = it;
0
- prev--;
0
- inactiveApps.erase(it);
0
- it = prev;
0
-
0
- count--;
0
- }
0
- if (appList->empty()) {
0
- apps.erase(app->getAppRoot());
0
- data->restartFileTimes.erase(app->getAppRoot());
0
- }
0
- }
0
- }
0
- }
0
-
0
- void detach() {
0
- detached = true;
0
-
0
- ApplicationMap::iterator it;
0
- for (it = apps.begin(); it != apps.end(); it++) {
0
- AppContainerList &list = *(it->second.get());
0
- AppContainerList::iterator it2;
0
- for (it2 = list.begin(); it2 != list.end(); it2++) {
0
- (*it2)->app->detach();
0
- }
0
- }
0
- }
0
-
0
- pair<AppContainerPtr, AppContainerList *>
0
- spawnOrUseExisting(mutex::scoped_lock &l, const string &appRoot,
0
- bool lowerPrivilege, const string &lowestUser) {
0
- AppContainerPtr container;
0
- AppContainerList *list;
0
-
0
- try {
0
- ApplicationMap::iterator it(apps.find(appRoot));
0
-
0
- if (it != apps.end() && needsRestart(appRoot)) {
0
- AppContainerList::iterator it2;
0
- list = it->second.get();
0
- for (it2 = list->begin(); it2 != list->end(); it2++) {
0
- container = *it2;
0
- if (container->sessions == 0) {
0
- inactiveApps.erase(container->ia_iterator);
0
- } else {
0
- active--;
0
- }
0
- it2--;
0
- list->erase(container->iterator);
0
- count--;
0
- }
0
- apps.erase(appRoot);
0
- spawnManager.reload(appRoot);
0
- it = apps.end();
0
- }
0
-
0
- if (it != apps.end()) {
0
- list = it->second.get();
0
-
0
- if (list->front()->sessions == 0 || count >= max) {
0
- container = list->front();
0
- list->pop_front();
0
- list->push_back(container);
0
- container->iterator = list->end();
0
- container->iterator--;
0
- if (container->sessions == 0) {
0
- inactiveApps.erase(container->ia_iterator);
0
- }
0
- active++;
0
- } else {
0
- container = ptr(new AppContainer());
0
- container->app = spawnManager.spawn(appRoot,
0
- lowerPrivilege, lowestUser);
0
- container->sessions = 0;
0
- list->push_back(container);
0
- container->iterator = list->end();
0
- container->iterator--;
0
- count++;
0
- active++;
0
- activeOrMaxChanged.notify_all();
0
- }
0
- } else {
0
- while (active >= max) {
0
- activeOrMaxChanged.wait(l);
0
- }
0
- if (count == max) {
0
- container = inactiveApps.front();
0
- inactiveApps.pop_front();
0
- list = apps[container->app->getAppRoot()].get();
0
- list->erase(container->iterator);
0
- if (list->empty()) {
0
- apps.erase(container->app->getAppRoot());
0
- restartFileTimes.erase(container->app->getAppRoot());
0
- }
0
- count--;
0
- }
0
- container = ptr(new AppContainer());
0
- container->app = spawnManager.spawn(appRoot, lowerPrivilege, lowestUser);
0
- container->sessions = 0;
0
- it = apps.find(appRoot);
0
- if (it == apps.end()) {
0
- list = new AppContainerList();
0
- apps[appRoot] = ptr(list);
0
- } else {
0
- list = it->second.get();
0
- }
0
- list->push_back(container);
0
- container->iterator = list->end();
0
- container->iterator--;
0
- count++;
0
- active++;
0
- activeOrMaxChanged.notify_all();
0
- }
0
- } catch (const SpawnException &e) {
0
- string message("Cannot spawn application '");
0
- message.append(appRoot);
0
- message.append("': ");
0
- message.append(e.what());
0
- if (e.hasErrorPage()) {
0
- throw SpawnException(message, e.getErrorPage());
0
- } else {
0
- throw SpawnException(message);
0
- }
0
- } catch (const exception &e) {
0
- string message("Cannot spawn application '");
0
- message.append(appRoot);
0
- message.append("': ");
0
- message.append(e.what());
0
- throw SpawnException(message);
0
- }
0
-
0
- return make_pair(container, list);
0
- }
0
-
0
-public:
0
- /**
0
- * Create a new StandardApplicationPool object.
0
- *
0
- * @param spawnServerCommand The filename of the spawn server to use.
0
- * @param logFile Specify a log file that the spawn server should use.
0
- * Messages on its standard output and standard error channels
0
- * will be written to this log file. If an empty string is
0
- * specified, no log file will be used, and the spawn server
0
- * will use the same standard output/error channels as the
0
- * current process.
0
- * @param environment The RAILS_ENV environment that all RoR applications
0
- * should use. If an empty string is specified, the current value
0
- * of the RAILS_ENV environment variable will be used.
0
- * @param rubyCommand The Ruby interpreter's command.
0
- * @throws SystemException An error occured while trying to setup the spawn server.
0
- * @throws IOException The specified log file could not be opened.
0
- */
0
- StandardApplicationPool(const string &spawnServerCommand,
0
- const string &logFile = "",
0
- const string &environment = "production",
0
- const string &rubyCommand = "ruby")
0
- :
0
- #ifndef PASSENGER_USE_DUMMY_SPAWN_MANAGER
0
- spawnManager(spawnServerCommand, logFile, environment, rubyCommand),
0
- #endif
0
- data(new SharedData()),
0
- lock(data->lock),
0
- activeOrMaxChanged(data->activeOrMaxChanged),
0
- apps(data->apps),
0
- max(data->max),
0
- count(data->count),
0
- active(data->active),
0
- inactiveApps(data->inactiveApps),
0
- restartFileTimes(data->restartFileTimes)
0
- {
0
- detached = false;
0
- done = false;
0
- max = DEFAULT_MAX_POOL_SIZE;
0
- count = 0;
0
- active = 0;
0
- maxIdleTime = DEFAULT_MAX_IDLE_TIME;
0
- cleanerThread = new thread(bind(&StandardApplicationPool::cleanerThreadMainLoop, this));
0
- }
0
-
0
- virtual ~StandardApplicationPool() {
0
- if (!detached) {
0
- {
0
- mutex::scoped_lock l(lock);
0
- done = true;
0
- cleanerThreadSleeper.notify_one();
0
- }
0
- cleanerThread->join();
0
- }
0
- delete cleanerThread;
0
- }
0
-
0
- virtual Application::SessionPtr
0
- get(const string &appRoot, bool lowerPrivilege = true, const string &lowestUser = "nobody") {
0
- unsigned int attempt;
0
- const unsigned int MAX_ATTEMPTS = 5;
0
-
0
- attempt = 0;
0
- while (true) {
0
- attempt++;
0
-
0
- mutex::scoped_lock l(lock);
0
- pair<AppContainerPtr, AppContainerList *> p(
0
- spawnOrUseExisting(l, appRoot, lowerPrivilege, lowestUser)
0
- );
0
- AppContainerPtr &container(p.first);
0
- AppContainerList &list(*p.second);
0
-
0
- container->lastUsed = time(NULL);
0
- container->sessions++;
0
- try {
0
- return container->app->connect(SessionCloseCallback(data, container));
0
- } catch (const exception &e) {
0
- container->sessions--;
0
- if (attempt == MAX_ATTEMPTS) {
0
- string message("Cannot connect to an existing application instance for '");
0
- message.append(appRoot);
0
- message.append("': ");
0
- try {
0
- const SystemException &syse = dynamic_cast<const SystemException &>(e);
0
- message.append(syse.sys());
0
- } catch (const bad_cast &) {
0
- message.append(e.what());
0
- }
0
- throw IOException(message);
0
- } else {
0
- list.erase(container->iterator);
0
- if (list.empty()) {
0
- apps.erase(appRoot);
0
- }
0
- count--;
0
- active--;
0
- }
0
- }
0
- }
0
- // Never reached; shut up compiler warning
0
- return Application::SessionPtr();
0
- }
0
-
0
- virtual void clear() {
0
- mutex::scoped_lock l(lock);
0
- apps.clear();
0
- inactiveApps.clear();
0
- restartFileTimes.clear();
0
- count = 0;
0
- active = 0;
0
- }
0
-
0
- virtual void setMaxIdleTime(unsigned int seconds) {
0
- mutex::scoped_lock l(lock);
0
- maxIdleTime = seconds;
0
- cleanerThreadSleeper.notify_one();
0
- }
0
-
0
- virtual void setMax(unsigned int max) {
0
- mutex::scoped_lock l(lock);
0
- this->max = max;
0
- activeOrMaxChanged.notify_all();
0
- }
0
-
0
- virtual unsigned int getActive() const {
0
- return active;
0
- }
0
-
0
- virtual unsigned int getCount() const {
0
- return count;
0
- }
0
-
0
- virtual pid_t getSpawnServerPid() const {
0
- return spawnManager.getServerPid();
0
- }
0
-};
0
-
0
 typedef shared_ptr<ApplicationPool> ApplicationPoolPtr;
0
 
0
 }; // namespace Passenger
...
12
13
14
15
 
16
17
18
...
12
13
14
 
15
16
17
18
0
@@ -12,7 +12,7 @@
0
 #include <errno.h>
0
 #include <unistd.h>
0
 
0
-#include "ApplicationPool.h"
0
+#include "StandardApplicationPool.h"
0
 #include "MessageChannel.h"
0
 #include "Exceptions.h"
0
 #include "Utils.h"
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 #include "tut.h"
0
-#include "ApplicationPool.h"
0
+#include "StandardApplicationPool.h"
0
 #include "Utils.h"
0
 
0
 using namespace Passenger;

Comments

    No one has commented yet.