public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Add extra trace points.
Hongli Lai (Phusion) (author)
Fri Jul 18 08:40:29 -0700 2008
commit  90f503be33fa48730e9fd50e2a2359187af1eb98
tree    76415374e729d11c3f8d9cd7e48dda65fe0c658c
parent  2263a793e5fe1c27754291693998f6fe92528ee3
...
313
314
315
 
 
316
317
318
...
331
332
333
 
334
335
336
 
337
338
 
339
340
341
342
 
343
344
345
346
 
347
348
349
350
 
351
352
353
...
360
361
362
 
363
364
 
365
366
 
367
368
369
...
313
314
315
316
317
318
319
320
...
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
...
368
369
370
371
372
373
374
375
376
377
378
379
380
0
@@ -313,6 +313,8 @@ private:
0
     
0
     virtual Application::SessionPtr get(const SpawnOptions &spawnOptions) {
0
       this_thread::disable_syscall_interruption dsi;
0
+ TRACE_POINT();
0
+
0
       MessageChannel channel(data->server);
0
       boost::mutex::scoped_lock l(data->lock);
0
       vector<string> args;
0
@@ -331,23 +333,29 @@ private:
0
           toString(spawnOptions.appSpawnerTimeout).c_str(),
0
           NULL);
0
       } catch (const SystemException &) {
0
+ UPDATE_TRACE_POINT();
0
         throw IOException("The ApplicationPool server exited unexpectedly.");
0
       }
0
       try {
0
+ UPDATE_TRACE_POINT();
0
         result = channel.read(args);
0
       } catch (const SystemException &e) {
0
+ UPDATE_TRACE_POINT();
0
         throw SystemException("Could not read a message from "
0
           "the ApplicationPool server", e.code());
0
       }
0
       if (!result) {
0
+ UPDATE_TRACE_POINT();
0
         throw IOException("The ApplicationPool server unexpectedly "
0
           "closed the connection.");
0
       }
0
       if (args[0] == "ok") {
0
+ UPDATE_TRACE_POINT();
0
         stream = channel.readFileDescriptor();
0
         return ptr(new RemoteSession(dataSmartPointer,
0
           atoi(args[1]), atoi(args[2]), stream));
0
       } else if (args[0] == "SpawnException") {
0
+ UPDATE_TRACE_POINT();
0
         if (args[2] == "true") {
0
           string errorPage;
0
           
0
@@ -360,10 +368,13 @@ private:
0
           throw SpawnException(args[1]);
0
         }
0
       } else if (args[0] == "BusyException") {
0
+ UPDATE_TRACE_POINT();
0
         throw BusyException(args[1]);
0
       } else if (args[0] == "IOException") {
0
+ UPDATE_TRACE_POINT();
0
         throw IOException(args[1]);
0
       } else {
0
+ UPDATE_TRACE_POINT();
0
         throw IOException("The ApplicationPool server returned "
0
           "an unknown message: " + toString(args));
0
       }

Comments

    No one has commented yet.