You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2010/05/13 19:44:13 UTC

svn commit: r943951 [18/19] - in /trafficserver/traffic/tags/2.1.0: ./ ci/ example/add-header/ example/app-template/ example/append-transform/ example/basic-auth/ example/blacklist-0/ example/blacklist-1/ example/bnull-transform/ example/cache_scan/ ex...

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/INKContSchedule.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/INKContSchedule.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/INKContSchedule.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/INKContSchedule.c Thu May 13 17:43:56 2010
@@ -27,19 +27,19 @@ Verification of INKqa06643
 
 Schedule a continuation that is simply called back with a later timeout
 value. Explicitly call INKContSchedule() without a mutex, the mutex should
-be created in InkAPI.cc/INKContSchedule. 
+be created in InkAPI.cc/INKContSchedule.
 
-This plug-in will not complete the client request (request times-out), 
-since the event routine calls INKContSchedule() in the event handler.  
-A simple change to the event routine can be made so that INKHttpTxnReenable() 
+This plug-in will not complete the client request (request times-out),
+since the event routine calls INKContSchedule() in the event handler.
+A simple change to the event routine can be made so that INKHttpTxnReenable()
 is called in place of INKContSchedule().
 
-Entry points to the core now use either 
-	FORCE_PLUGIN_MUTEX 
+Entry points to the core now use either
+	FORCE_PLUGIN_MUTEX
 or
-	new_ProxyMutex() 
+	new_ProxyMutex()
 
-to create/init a mutex. 
+to create/init a mutex.
 
 **************************************************************************/
 

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/ServerSM.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/ServerSM.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/ServerSM.cc (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKContinuations/ServerSM.cc Thu May 13 17:43:56 2010
@@ -247,7 +247,7 @@ server_send_request(INKCont contp)
   ServerSM *Server = (ServerSM *) INKContDataGet(contp);
   assert(Server->q_server_conn_status != CONNECTED_SENDING);
   Server->q_server_conn_status = CONNECTED_SENDING;
-/*    
+/*
     if (Server->q_server_request_buffer != NULL)
 	Server->q_server_request_buffer->reset();
 
@@ -255,10 +255,10 @@ server_send_request(INKCont contp)
 	  "[send_request] first pop up from sending_sms and then add it in call back queue");
     RaftSubSM *current_sub_sm = (RaftSubSM *) pop_item_from_raft_list(&Server->q_sending_sms);
     assert(current_sub_sm != NULL);
-    
+
     add_item_to_raft_list(&Server->q_sms_to_call_back, current_sub_sm);
     Server->q_server_request_buffer = ((RaftSubSM*)current_sub_sm)->Server->q_server_request_buffer;
-    Server->q_server_request_buffer_reader = 
+    Server->q_server_request_buffer_reader =
 	((RaftSubSM*)current_sub_sm)->Server->q_server_request_buffer_reader;
 */
   assert(Server->q_server_request_buffer);
@@ -364,9 +364,9 @@ state_main_event(INKCont contp, int even
 
     break;
 /*       case INK_EVENT_VCONN_INACTIVITY_TIMEOUT:
-	 INKDebug("serversm","[%u][state_main_event]state_main_event, INACTIVITY_TIME_OUT", 
+	 INKDebug("serversm","[%u][state_main_event]state_main_event, INACTIVITY_TIME_OUT",
 	 Server->q_sm_id);
-	 
+
 	 return INK_EVENT_IMMEDIATE;
 */
   default:
@@ -424,7 +424,7 @@ state_wait_for_write(INKCont contp, int 
     Server->q_server_request_buffer = NULL;
     Server->q_server_request_buffer_reader = NULL;
 
-    // well, the server has read the request.       
+    // well, the server has read the request.
     // clear the vio.
     Server->q_server_write_vio = NULL;
 
@@ -438,7 +438,7 @@ state_wait_for_write(INKCont contp, int 
 
 //          SET_HANDLER((ServerSMHandler)&state_main_event);
 //          Server->q_server_vc->set_inactivity_timeout(RAFT_SERVER_INACTIVITY_TIMEOUT);
-/*	    
+/*
 	    Server->q_server_read_vio = Server->q_server_vc->do_io_read(this,
 							RAFT_DEFAULT_BUFFER_SIZE,
 							Server->q_server_response_buffer);
@@ -600,7 +600,7 @@ state_read_response_from_server(INKCont 
     assert(!"[serversm], [state_read_response_from_server], invalid events.");
     return call_back_sub_sm_with_error(contp);
   default:
-    // there should be some "invalid event" assertion. Think carefully 
+    // there should be some "invalid event" assertion. Think carefully
     // what race condition can happen here.
     break;
   }
@@ -702,7 +702,7 @@ call_back_sub_sm_with_error(INKCont cont
 
 
   // this is, of course, done by adding the current reading
-  // sub_sms to the waiting_to_be_called_back list and 
+  // sub_sms to the waiting_to_be_called_back list and
   // calling the state_call_back_sub_sm function.
   // easy as blueberry pie.
   if (Server->q_reading_sub_contp) {
@@ -913,7 +913,7 @@ state_dns_lookup(INKCont contp, int even
     INKDebug("serversm", "[%u][state_dns_lookup] Unable to resolve DNS for %s", Server->q_sm_id, Server->q_server_name);
 
     // FUTURE: we may at some point want to try doing automatic
-    // name expansion (appending local domain name or prepending www) 
+    // name expansion (appending local domain name or prepending www)
     // and retrying the dns lookup. for now, however, just bail out.
 
     return call_back_sub_sm_with_error(contp);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKFopen/INKFopen.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKFopen/INKFopen.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKFopen/INKFopen.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKFopen/INKFopen.c Thu May 13 17:43:56 2010
@@ -23,9 +23,9 @@
 
 
 /*****************************************************************************
-TODO test for the debugging family of functions  
+TODO test for the debugging family of functions
 
-	Test for the INKfopen family of functions  
+	Test for the INKfopen family of functions
 
 INKfclose
 INKfflush
@@ -34,14 +34,14 @@ INKfopen
 INKfread
 INKfwrite
 
-	Test for the Memory allocation family of functions  
+	Test for the Memory allocation family of functions
 INKfree
 INKmalloc
 INKrealloc
 INKstrdup
-INKstrndup 
+INKstrndup
 
-	Test for the Thread family of functions  
+	Test for the Thread family of functions
 
 INKThreadCreate
 INKThreadDestroy
@@ -53,14 +53,14 @@ The approach taken is to write a large t
 portions of each api within each section. The order of the test is based
 on the order that the tests are written in the programmers guide.
 
-This approach makes it difficult to allow for a test case to fail and to 
-continue with other tests. In this approach, if a tests fails the remaining 
+This approach makes it difficult to allow for a test case to fail and to
+continue with other tests. In this approach, if a tests fails the remaining
 tests are not attempted since the remaining tests depend on results from
 prior tests.
 
 A different approach would be to write each test case as completely
-individual tests not depending on the results of prior tests. 
-This approach leads to less complicated code but takes more time to 
+individual tests not depending on the results of prior tests.
+This approach leads to less complicated code but takes more time to
 write the code.  Guesstimate: 3X more code and time. Easier to maintane.
 
 *****************************************************************************/
@@ -78,9 +78,9 @@ extern int errno;
 /* solaris threads: deprecated */
 #include <pthread.h>
 
-/* 
- * INKDebug() is used for generic messaging 
- * INKerror() is used as an error reporting 
+/*
+ * INKDebug() is used for generic messaging
+ * INKerror() is used as an error reporting
 */
 
 /* Used to create tmp file */
@@ -92,18 +92,18 @@ extern int errno;
 /* There are three threads tests */
 #define NUM_THREAD_TESTS (3)
 /* This is the third test
- * Arbritrary number of to INKThreadInit()/INKThreadDestroy() 
+ * Arbritrary number of to INKThreadInit()/INKThreadDestroy()
 */
 #define	NUM_THREADS	(1000)
 
 
-/* Number of total INKfopen test: 16 
+/* Number of total INKfopen test: 16
  * non-negative tests: 10
 */
 #define	NUM_FOPEN_TESTS	(10)
-/* 
+/*
 1. INKfclose:
-   1.1 INKfclose on read file	         1.2 INKfclose on write file 
+   1.1 INKfclose on read file	         1.2 INKfclose on write file
    1.3 flush data on read file [neg]     1.4 flush data on write file
 
 2. INKfflush
@@ -169,7 +169,7 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
     return ++fopenErrCount;
   }
 
-  /* 
+  /*
    * 4. INKfopen
    *    4.2 INKfopen (create) for write
    *
@@ -185,7 +185,7 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
   /*
    *  3. INKfgets
    *     3.1 INKfgets on read file
-   * inputReadFile                is the file to read from, 
+   * inputReadFile                is the file to read from,
    * inputBuf                     is the buffer to write to
    * statBuffInputText.st_size    is the size of the buffer to read into
    */
@@ -209,15 +209,15 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
   } else
     INKDebug("INKfopen_plug-in", "INKfopenTest() INKfgets passed on file open for read mode.\n");
 
-        /*************************************************************** 
+        /***************************************************************
 	* TODO how do we rewind to the begining of a file (sourceReadFile)?
 	*****************************************************************/
 
-  /* 
+  /*
    * 6. INKfwrite
-   *    6.1 INKfwrite on a write file 
+   *    6.1 INKfwrite on a write file
    * writeFile    is the (tmp) file to write data to
-   * inputBuf             buffer to read data from 
+   * inputBuf             buffer to read data from
    * BUFSIZ       is the amount of data to write
    *
    */
@@ -259,7 +259,7 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
     return ++fopenErrCount;
   }
 
-  /*  
+  /*
    * 5. INKfread
    *    5.1 INKfread on read file
    * Read the tempnameWriteFile back in and compare to original
@@ -306,10 +306,10 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
   } else
     INKDebug("INKfopen_plug-in", "INKfopen: INKfclose: on read file passed\n");
 
-  /* 1. INKfclose: 
+  /* 1. INKfclose:
    * 1.2 INKfclose on write file
-   * Any operation (read) on a closed file should return an error 
-   * message 
+   * Any operation (read) on a closed file should return an error
+   * message
    */
   INKfclose(writeFile);
 
@@ -330,7 +330,7 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
    * a buffer, then just read the buffer.
    */
 
-  /* Create unique tmp _file_name_ do not use any TS file_name 
+  /* Create unique tmp _file_name_ do not use any TS file_name
    */
   if ((tempnamFlushFile = tempnam(TMP_DIR, PFX)) == NULL) {
     INKError("INKfopenTest(): tempnam failed for tempnamFlushFile\n");
@@ -357,9 +357,9 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
   /* clear inputBuf, could fill buffer here and avoid the file read */
   memset(inputBuf, '\0', BUFSIZ);
 
-  /* inputReadFile is the file to read from, 
+  /* inputReadFile is the file to read from,
    *  inputBuf         is the buffer to write to
-   *  statBuffInputText.st_size   is the amount  of data to read 
+   *  statBuffInputText.st_size   is the amount  of data to read
    */
   if ((retVal = INKfgets(sourceReadFile, inputBuf, statBuffInputText.st_size))
       == NULL) {
@@ -395,13 +395,13 @@ INKfopenTest(INKHttpTxn txnp, INKCont co
     return ++fopenErrCount;
   }
 
-  /* 
+  /*
    * 4. INKfopen
-   *    4.4 INKfopen for write: Open existing file for write 
+   *    4.4 INKfopen for write: Open existing file for write
    */
 
-  /* Does this append or does this truncate ? 
-   * Guess: truncate as in fopen(3S) 
+  /* Does this append or does this truncate ?
+   * Guess: truncate as in fopen(3S)
    * API: open(2) or fopen(3S) or NT? We just need to pick one.
    */
   /* writeFile just closed, temporary file still exists, reopen */
@@ -452,7 +452,7 @@ INKfree
 INKmalloc
 INKrealloc
 INKstrdup
-INKstrndup 
+INKstrndup
 */
 
   return INKMemAllocErrors;
@@ -507,16 +507,16 @@ INKThreadCallee(void *arg)
 
 /* TODO POSIX/Solaris Threads
  * It appears that Traffic Server support both POSIX and Solaris threads
- * as part of the SDK. 
- * 1. Verify. 
- * 2. Write Solaris based thread code here to compliment these POSIX 
+ * as part of the SDK.
+ * 1. Verify.
+ * 2. Write Solaris based thread code here to compliment these POSIX
  *    (pthread) based test.
- * 3. POSIX tests were written first since Solaris threads are being 
- *    deprecated in favor of POSIX. 
+ * 3. POSIX tests were written first since Solaris threads are being
+ *    deprecated in favor of POSIX.
 */
 
-/* Argument data passed to thread init functions 
- * cannot be allocated on the stack. 
+/* Argument data passed to thread init functions
+ * cannot be allocated on the stack.
 */
 pthread_t currTid, newTid;
 
@@ -546,8 +546,8 @@ INKThreadTest(INKHttpTxn txnp, INKCont c
     INKDebug("INKfopen_plug-in", "INKThreadSelf(): passed: current INKThread:0x%08x\n", INKCurrThread);
   /* Test 2: */
   threadFunc = (INKThreadFunc) INKThreadCallee;
-  /* Try to attach this thread to a function that does not have the 
-   * the same prototype described in the p.g. 
+  /* Try to attach this thread to a function that does not have the
+   * the same prototype described in the p.g.
    */
   /* INKThreadCreate(threadFunc, (void*)&argInt); */
   /* INKThreadCreate((INKThreadFunc)INKThreadCallee, (void*)&argInt); */
@@ -563,10 +563,10 @@ INKThreadTest(INKHttpTxn txnp, INKCont c
    * Create pthreads and register the thread init code.
    *
    * TODO track threads created and on what thread with actual init function invocation
-   * Could use global data with mutex lock or 
+   * Could use global data with mutex lock or
    * tsd. If a thread created here does not execute in the registered
    * init function these tests will not catch this as an error. This
-   * type of error would be less of an SDK error an more of a system 
+   * type of error would be less of an SDK error an more of a system
    * error or TrafficServer/system interaction.
    */
   for (i = 0; i < NUM_THREADS; i++) {
@@ -584,7 +584,7 @@ INKThreadTest(INKHttpTxn txnp, INKCont c
 
                         /********************************************
 			if (firstThreadError)
-				continue;          skip these tests 
+				continue;          skip these tests
 			********************************************/
     } else
       INKDebug("INKfopen_plug-in", "INKThreadTest(): pthread_create created: %d\n", newTid);
@@ -619,7 +619,7 @@ INKfopen_plugin(INKCont contp, INKEvent 
     break;
   }
   /* Always reeneable HTTP transaction after processing of each
-   * transaction event. 
+   * transaction event.
    */
   INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
   return status;

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpHook.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpHook.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpHook.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpHook.c Thu May 13 17:43:56 2010
@@ -22,7 +22,7 @@
  */
 
 
-/* 
+/*
 Tests for "global" hooks, i.e., registering for events not at the session
 or transaction level and processing those events.
 
@@ -56,10 +56,10 @@ const char *const INKEventStrId[] = {
   "INK_EVENT_MGMT_UPDATE"       /* 60100 */
 };
 
-/* 
+/*
  * We track that each hook was called using this array. We start with
- * all values set to zero, meaning that the INKEvent has not been 
- * received. 
+ * all values set to zero, meaning that the INKEvent has not been
+ * received.
  * There 16 entries.
 */
 static int inktHookTbl[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
@@ -83,8 +83,8 @@ ChkEvents(const int event)
 }
 
 
-/* event routine: for each INKHttpHookID this routine should be called 
- * with a matching event. 
+/* event routine: for each INKHttpHookID this routine should be called
+ * with a matching event.
 */
 static int
 INKHttpHook(INKCont contp, INKEvent event, void *eData)
@@ -95,8 +95,8 @@ INKHttpHook(INKCont contp, INKEvent even
   switch (event) {
   case INK_EVENT_HTTP_READ_REQUEST_HDR:
     inktHookTbl[index(INK_EVENT_HTTP_READ_REQUEST_HDR)] = 1;
-    /* List what events have been called back at 
-     * this point in procesing 
+    /* List what events have been called back at
+     * this point in procesing
      */
     ChkEvents(INK_EVENT_HTTP_READ_REQUEST_HDR);
     INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
@@ -171,16 +171,16 @@ INKHttpHook(INKCont contp, INKEvent even
     break;
 
   case INK_EVENT_HTTP_SSN_CLOSE:
-    /* Here as a result of: 
-     * INKHTTPHookAdd(INK_HTTP_SSN_CLOSE_HOOK) 
+    /* Here as a result of:
+     * INKHTTPHookAdd(INK_HTTP_SSN_CLOSE_HOOK)
      */
     inktHookTbl[index(INK_EVENT_HTTP_SSN_CLOSE)] = 1;
 
     /* Assumption: at this point all other events have
      * have been called. Since a session can have one or
      * more transactions, the close of a session should
-     * prompt us to check that all events have been called back 
-     * CAUTION: can a single request trigger all events? 
+     * prompt us to check that all events have been called back
+     * CAUTION: can a single request trigger all events?
      */
     if (ChkEvents(INK_EVENT_HTTP_SSN_CLOSE))
       INKError("INKHttpHook: Fail: All events not called back.\n");
@@ -213,7 +213,7 @@ INKPluginInit(int argc, const char *argv
     INKHttpHookAdd(INK_HTTP_READ_RESPONSE_HDR_HOOK, myCont);
     INKHttpHookAdd(INK_HTTP_SEND_RESPONSE_HDR_HOOK, myCont);
 
-    /* These are transactional 
+    /* These are transactional
      * INKHttpHookAdd(INK_HTTP_REQUEST_TRANSFORM_HOOK, myCont);
      * INKHttpHookAdd(INK_HTTP_RESPONSE_TRANSFORM_HOOK, myCont);
      */

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpReenableStop.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpReenableStop.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpReenableStop.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpReenableStop.c Thu May 13 17:43:56 2010
@@ -22,7 +22,7 @@
  */
 
 
-/* 
+/*
 TODO tests of stoping an event at the session and transaction level
 
 
@@ -33,8 +33,8 @@ TODO tests of stoping an event at the se
 
 #if 0
 */
-/************************************************************************** 
- * HTTP Sessions 
+/**************************************************************************
+ * HTTP Sessions
  *************************************************************************/
 
 /*
@@ -50,6 +50,6 @@ TODO build a test case for event INK_EVE
 TODO build a test case for event INK_EVENT_HTTP_ERROR
 */
 
-/************************************************************************** 
- * HTTP sessions 
+/**************************************************************************
+ * HTTP sessions
  *************************************************************************/

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSelAlt.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSelAlt.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSelAlt.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSelAlt.c Thu May 13 17:43:56 2010
@@ -58,10 +58,10 @@ const char *const INKEventStrId[] = {
   "INK_EVENT_MGMT_UPDATE"       /* 60100 */
 };
 
-/* 
+/*
  * We track that each hook was called using this array. We start with
- * all values set to zero, meaning that the INKEvent has not been 
- * received. 
+ * all values set to zero, meaning that the INKEvent has not been
+ * received.
  * There 16 entries.
 */
 static int inktHookTbl[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
@@ -86,8 +86,8 @@ ChkEvents(const int event)
 }
 
 
-/* event routine: for each INKHttpHookID this routine should be called 
- * with a matching event. 
+/* event routine: for each INKHttpHookID this routine should be called
+ * with a matching event.
 */
 static int
 INKHttpHook(INKCont contp, INKEvent event, void *eData)
@@ -101,8 +101,8 @@ INKHttpHook(INKCont contp, INKEvent even
 
   case INK_EVENT_HTTP_SSN_START:
 
-    /* Reged at the "session" level, all but 
-     * INK_HTTP_TXN_CLOSE_HOOK is received. 
+    /* Reged at the "session" level, all but
+     * INK_HTTP_TXN_CLOSE_HOOK is received.
      */
     inktHookTbl[index(INK_EVENT_HTTP_SSN_START)] = 1;
     ChkEvents(INK_EVENT_HTTP_SSN_START);
@@ -118,7 +118,7 @@ INKHttpHook(INKCont contp, INKEvent even
     inktHookTbl[index(INK_EVENT_HTTP_SELECT_ALT)] = 1;
     ChkEvents(INK_EVENT_HTTP_SELECT_ALT);
 
-    /* Cache hit 
+    /* Cache hit
      * Now set mult value based on cached req IP address.
      */
 
@@ -134,7 +134,7 @@ INKHttpHook(INKCont contp, INKEvent even
 
     /* Get the cached client req  URL for this pAltInfo/multiplier value */
 
-    /* Wrong: 
+    /* Wrong:
        /* Get the cached client resp URL for this pAltInfo/multiplier value */
     /* Should be:
        /* Get the cached o.s.   resp URL for this pAltInfo/multiplier value */
@@ -161,7 +161,7 @@ INKPluginInit(int argc, const char *argv
   if (myCont != NULL) {
 
     /* Reged at the "global" level, these 4 events are
-     * received. 
+     * received.
      */
     INKHttpHookAdd(INK_HTTP_SSN_START_HOOK, myCont);
     INKHttpHookAdd(INK_HTTP_SELECT_ALT_HOOK, myCont);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSsnHookAdd.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSsnHookAdd.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSsnHookAdd.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpSsnHookAdd.c Thu May 13 17:43:56 2010
@@ -24,7 +24,7 @@
 
 /*
 Tests for registering/processing events at the session level.
-      INKHttpSsnHookAdd( HOOK_ID is either SSN_START or SSN_CLOSE ) 
+      INKHttpSsnHookAdd( HOOK_ID is either SSN_START or SSN_CLOSE )
 */
 
 
@@ -54,10 +54,10 @@ const char *const
   "INK_EVENT_MGMT_UPDATE"       /* 60100 */
 };
 
-/* 
+/*
  * We track that each hook was called using this array. We start with
- * all values set to zero, meaning that the INKEvent has not been 
- * received. 
+ * all values set to zero, meaning that the INKEvent has not been
+ * received.
  * There 16 entries.
 */
 static int inktHookTbl[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
@@ -115,7 +115,7 @@ handle_transform(INKCont contp)
    * ourself. This VIO contains the buffer that we are to read from
    * as well as the continuation we are to call when the buffer is
    * empty. This is the input VIO (the write VIO for the upstream
-   * vconnection). 
+   * vconnection).
    */
   input_vio = INKVConnWriteVIOGet(contp);
 
@@ -139,7 +139,7 @@ handle_transform(INKCont contp)
    * more WRITE_READY or WRITE_COMPLETE events. For this simplistic
    * transformation that means we're done. In a more complex
    * transformation we might have to finish writing the transformed
-   * data to our output connection. 
+   * data to our output connection.
    */
   if (!INKVIOBufferGet(input_vio)) {
     INKVIONBytesSet(data->output_vio, INKVIONDoneGet(input_vio));
@@ -149,12 +149,12 @@ handle_transform(INKCont contp)
 
   /* Determine how much data we have left to read. For this null
    * transform plugin this is also the amount of data we have left
-   * to write to the output connection. 
+   * to write to the output connection.
    */
   towrite = INKVIONTodoGet(input_vio);
   if (towrite > 0) {
     /* The amount of data left to read needs to be truncated by
-     * the amount of data actually in the read buffer. 
+     * the amount of data actually in the read buffer.
      */
     avail = INKIOBufferReaderAvail(INKVIOReaderGet(input_vio));
     if (towrite > avail) {
@@ -166,31 +166,31 @@ handle_transform(INKCont contp)
       INKIOBufferCopy(INKVIOBufferGet(data->output_vio), INKVIOReaderGet(input_vio), towrite, 0);
 
       /* Tell the read buffer that we have read the data and are no
-       * longer interested in it. 
+       * longer interested in it.
        */
       INKIOBufferReaderConsume(INKVIOReaderGet(input_vio), towrite);
 
       /* Modify the input VIO to reflect how much data we've
-       * completed. 
+       * completed.
        */
       INKVIONDoneSet(input_vio, INKVIONDoneGet(input_vio) + towrite);
     }
   }
 
   /* Now we check the input VIO to see if there is data left to
-   * read. 
+   * read.
    */
   if (INKVIONTodoGet(input_vio) > 0) {
     if (towrite > 0) {
       /* If there is data left to read, then we reenable the output
        * connection by reenabling the output VIO. This will wake up
        * the output connection and allow it to consume data from the
-       * output buffer. 
+       * output buffer.
        */
       INKVIOReenable(data->output_vio);
 
       /* Call back the input VIO continuation to let it know that we
-       * are ready for more data. 
+       * are ready for more data.
        */
       INKContCall(INKVIOContGet(input_vio), INK_EVENT_VCONN_WRITE_READY, input_vio);
     }
@@ -199,13 +199,13 @@ handle_transform(INKCont contp)
      * VIO to reflect how much data the output connection should
      * expect. This allows the output connection to know when it
      * is done reading. We then reenable the output connection so
-     * that it can consume the data we just gave it. 
+     * that it can consume the data we just gave it.
      */
     INKVIONBytesSet(data->output_vio, INKVIONDoneGet(input_vio));
     INKVIOReenable(data->output_vio);
 
     /* Call back the input VIO continuation to let it know that we
-     * have completed the write operation. 
+     * have completed the write operation.
      */
     INKContCall(INKVIOContGet(input_vio), INK_EVENT_VCONN_WRITE_COMPLETE, input_vio);
   }
@@ -218,15 +218,15 @@ handle_transform(INKCont contp)
 static int
 null_transform(INKCont contp, INKEvent event, void *edata)
 {
-  /* This is the "event(s)" that are delivered for 
-   * INK_EVENT_HTTP_RESPONSE_TRANSFORM. 
+  /* This is the "event(s)" that are delivered for
+   * INK_EVENT_HTTP_RESPONSE_TRANSFORM.
    */
   inktHookTbl[index(INK_EVENT_HTTP_RESPONSE_TRANSFORM)] = 1;
   ChkEvents(INK_EVENT_HTTP_RESPONSE_TRANSFORM);
 
 
   /* Check to see if the transformation has been closed by a call to
-   * INKVConnClose. 
+   * INKVConnClose.
    */
   if (INKVConnClosedGet(contp)) {
     my_data_destroy(INKContDataGet(contp));
@@ -240,12 +240,12 @@ null_transform(INKCont contp, INKEvent e
 
         /* Get the write VIO for the write operation that was
          * performed on ourself. This VIO contains the continuation of
-         * our parent transformation. This is the input VIO.  
+         * our parent transformation. This is the input VIO.
          */
         input_vio = INKVConnWriteVIOGet(contp);
 
         /* Call back the write VIO continuation to let it know that we
-         * have completed the write operation. 
+         * have completed the write operation.
          */
         INKContCall(INKVIOContGet(input_vio), INK_EVENT_ERROR, input_vio);
       }
@@ -262,7 +262,7 @@ null_transform(INKCont contp, INKEvent e
     default:
       /* If we get a WRITE_READY event or any other type of
        * event (sent, perhaps, because we were reenabled) then
-       * we'll attempt to transform more data. 
+       * we'll attempt to transform more data.
        */
       handle_transform(contp);
       break;
@@ -274,7 +274,7 @@ null_transform(INKCont contp, INKEvent e
 
 
 
-/* Since this is event based, it can be re-used with 
+/* Since this is event based, it can be re-used with
  * INKHttpHookAdd()
  * INKHttpSsnHookAdd()
  * INKHttpTxnHokkAdd()
@@ -295,8 +295,8 @@ ChkEvents(const int event)
   return re;
 }
 
-/* event routine: for each INKHttpHookID this routine should be called 
- * with a matching event. 
+/* event routine: for each INKHttpHookID this routine should be called
+ * with a matching event.
 */
 static int
 SsnHookAddEvent(INKCont contp, INKEvent event, void *eData)
@@ -308,15 +308,15 @@ SsnHookAddEvent(INKCont contp, INKEvent 
   switch (event) {
   case INK_EVENT_HTTP_READ_REQUEST_HDR:
     inktHookTbl[index(INK_EVENT_HTTP_READ_REQUEST_HDR)] = 1;
-    /* List what events have been called back at 
-     * this point in procesing 
+    /* List what events have been called back at
+     * this point in procesing
      */
     ChkEvents(INK_EVENT_HTTP_READ_REQUEST_HDR);
 
     /* TODO test for INK_HTTP_REQUEST_TRANSFORM_HOOK */
 
     /* This event is delivered to a transaction. Reenable the
-     * txnp pointer not the session. 
+     * txnp pointer not the session.
      */
     INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
     break;
@@ -352,10 +352,10 @@ SsnHookAddEvent(INKCont contp, INKEvent 
     /* TODO verify
      * should be:
      *              INK_EVENT_HTTP_READ_REQUEST_HDR_HOOK
-     *              INK_HTTP_REQUEST_TRANSFORM_HOOK 
-     * for 
+     *              INK_HTTP_REQUEST_TRANSFORM_HOOK
+     * for
      *              INK_EVENT_HTTP_READ_RESPONSE_HDR_HOOK
-     *              INK_HTTP_RESPONSE_TRANSFORM_HOOK 
+     *              INK_HTTP_RESPONSE_TRANSFORM_HOOK
      * Registering with a new continuation / callback.
      */
 
@@ -375,8 +375,8 @@ SsnHookAddEvent(INKCont contp, INKEvent 
     break;
 
   case INK_EVENT_HTTP_RESPONSE_TRANSFORM:
-    /* This event is not delivered here. See null_transform 
-     * and verify that INK_EVENT_ERROR, 
+    /* This event is not delivered here. See null_transform
+     * and verify that INK_EVENT_ERROR,
      * INK_EVENT_VCONN_WRITE_COMPLETE, INK_EVENT_CVONN_WRITE_READY
      *
      * TODO do not use as a defined event if it does not get delivered
@@ -429,9 +429,9 @@ SsnHookAddEvent(INKCont contp, INKEvent 
 
     INKHttpSsnHookAdd(ssnp, INK_HTTP_TXN_START_HOOK, contp);
 
-                /******************************************************** 
-		* We've already registered for this event as a global 
-		* hook. Registering for this event at the session 
+                /********************************************************
+		* We've already registered for this event as a global
+		* hook. Registering for this event at the session
 		* level will send this event twice: once for the registration
 		* done at PluginInit and once for the sessions.
 		*
@@ -445,15 +445,15 @@ SsnHookAddEvent(INKCont contp, INKEvent 
     break;
 
   case INK_EVENT_HTTP_SSN_CLOSE:
-    /* Here as a result of: 
-     * INKHTTPSsnHookAdd(ssnp, INK_HTTP_SSN_CLOSE_HOOK, contp) 
+    /* Here as a result of:
+     * INKHTTPSsnHookAdd(ssnp, INK_HTTP_SSN_CLOSE_HOOK, contp)
      */
     inktHookTbl[index(INK_EVENT_HTTP_SSN_CLOSE)] = 1;
 
     /* Assumption: at this point all other events have
      * have been called. Since a session can have one or
      * more transactions, the close of a session should
-     * prompt us to check that all events have been called back 
+     * prompt us to check that all events have been called back
      */
     if (ChkEvents(INK_EVENT_HTTP_SSN_CLOSE))
       INKError("INKHttpHook: Fail: All events not called back.\n");

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTransaction.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTransaction.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTransaction.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTransaction.c Thu May 13 17:43:56 2010
@@ -42,7 +42,7 @@ handle_HTTP_SEND_RESPONSE_HDR(INKCont co
     err++;
   }
 
-/* 
+/*
 INKHttpTxnCachedRespGet (INKHttpTxn txnp, INKMBuffer *bufp, INKMLoc *offset);
 */
 /* Display buffer contents */

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnErrBodySet.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnErrBodySet.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnErrBodySet.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnErrBodySet.c Thu May 13 17:43:56 2010
@@ -25,33 +25,33 @@
 #include "ts.h"
 
 /* This is a response to a client (req), which will be executed after reciept
- * of: 
+ * of:
  *   INK_HTTP_SEND_RESPONSE_HDR_HOOK
  *
- * htmlBody: text 
- * INKHttpTxnErrorBodySet(txnp, htmlBody, sizeof(htmlBody), NULL); 
+ * htmlBody: text
+ * INKHttpTxnErrorBodySet(txnp, htmlBody, sizeof(htmlBody), NULL);
  *
- * htmlBody: other fmt (?) 
- * INKHttpTxnErrorBodySet(txnp, htmlBody, sizeof(htmlBody), "image/jpeg"); 
+ * htmlBody: other fmt (?)
+ * INKHttpTxnErrorBodySet(txnp, htmlBody, sizeof(htmlBody), "image/jpeg");
  *
  * INKHttpTxnErrorBodySet(txnp, "inktomi.gif", 1308, "image/jpeg");
- * 
+ *
  * This api requires that a GET request of a site that does not exist or
- * of a site that is not answering requests. This API will not overwrite 
+ * of a site that is not answering requests. This API will not overwrite
  * the requested content if that content can be succsesfully returned.
- * 
+ *
  * TODO API should be tested by sending a request that indicates the type of error body to be set in the response
- * For example: 
- * GET http://www.bogusIMAGE.com HTTP/1.0 
- * GET http://www.bogusHTML.com HTTP/1.0 
- * GET http://www.bogusOTHER.com HTTP/1.0 
- * 
- * retrieve the URL: INKHttpHdrURLGet() 
- * strstr to parse and find a substring in the URL string  
- *        search for the above predefined sites and return the appropriate 
- *        body type. 
- * Perhaps not the most creative tests, but this should nicely tests this 
- * API in a single plug in. 
+ * For example:
+ * GET http://www.bogusIMAGE.com HTTP/1.0
+ * GET http://www.bogusHTML.com HTTP/1.0
+ * GET http://www.bogusOTHER.com HTTP/1.0
+ *
+ * retrieve the URL: INKHttpHdrURLGet()
+ * strstr to parse and find a substring in the URL string
+ *        search for the above predefined sites and return the appropriate
+ *        body type.
+ * Perhaps not the most creative tests, but this should nicely tests this
+ * API in a single plug in.
  */
 
 const char *const INKEventStrId[] = {
@@ -82,7 +82,7 @@ const char *const INKEventStrId[] = {
 #define		FMT_TXT		(NULL)
 
 
-/* Body of HTML page sent by INKHttpErrorBodySet() 
+/* Body of HTML page sent by INKHttpErrorBodySet()
 */
 const char htmlBody[] = " \
 <html> \
@@ -99,10 +99,10 @@ const char htmlBody[] = " \
 
 
 
-/* 
- * handle_dns() from output-header.c: 
- * prints in it's entirety either the 
- * response or the request 
+/*
+ * handle_dns() from output-header.c:
+ * prints in it's entirety either the
+ * response or the request
  * TODO byte for byte buff compare alg that guarantees data integrity for cached and non-cached data buffs
 */
 
@@ -158,7 +158,7 @@ DisplayBufferContents(INKMBuffer bufp, I
     /* We'll get a block pointer back even if there is no data
        left to read so check for this condition and break out of
        the loop. A block with no data to read means we've exhausted
-       buffer of data since if there was more data on a later 
+       buffer of data since if there was more data on a later
        block in the chain, this block would have been skipped over */
     if (block_avail == 0) {
       break;
@@ -200,7 +200,7 @@ static unsigned char marker_gif_data[] =
   0x01, 0x00, 0x3b,
 };
 
-/* Test of INKHttpTxnErrorBodySet() with an image/jpeg from 
+/* Test of INKHttpTxnErrorBodySet() with an image/jpeg from
  * INK_HTTP_SSN_START.  This code should be working. However,
  * there is no such thing as the image is too small. The telnet
  * client should see "GIF" in the body of the response.
@@ -222,9 +222,9 @@ handle_HTTP_SSN_START(INKCont contp, INK
   strncpy(fmtPtr, FMT_IMAGE_JPEG, sizeof(FMT_IMAGE_JPEG));
 
   INKHttpTxnErrorBodySet(txnp, (char *) markerPtr, sizeof(marker_gif_data), fmtPtr);
-  /* TS managed space: 
+  /* TS managed space:
    * INKfree(markerPtr);
-   * INKfree(fmtPtr); 
+   * INKfree(fmtPtr);
    */
 
   return err;
@@ -261,7 +261,7 @@ handle_HTTP_SEND_RESPONSE_HDR(INKCont co
     INKHttpTxnErrorBodySet(txnp, (char *) bufPtr, sizeof(htmlBody), fmtPtr);
     /* TS frees when no longer needed:
      * INKfree(bufPtr);
-     * INKfree(fmtPtr); 
+     * INKfree(fmtPtr);
      */
   }
   return err;

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnHookAdd.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnHookAdd.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnHookAdd.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnHookAdd.c Thu May 13 17:43:56 2010
@@ -56,10 +56,10 @@ const char *const INKEventStrId[] = {
   "INK_EVENT_MGMT_UPDATE"       /* 60100 */
 };
 
-/* 
+/*
  * We track that each hook was called using this array. We start with
- * all values set to zero, meaning that the INKEvent has not been 
- * received. 
+ * all values set to zero, meaning that the INKEvent has not been
+ * received.
  * There 16 entries.
 */
 static int inktHookTbl[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
@@ -84,8 +84,8 @@ ChkEvents(const int event)
 }
 
 
-/* event routine: for each INKHttpHookID this routine should be called 
- * with a matching event. 
+/* event routine: for each INKHttpHookID this routine should be called
+ * with a matching event.
 */
 static int
 INKHttpHook(INKCont contp, INKEvent event, void *eData)
@@ -99,7 +99,7 @@ INKHttpHook(INKCont contp, INKEvent even
     ChkEvents(INK_EVENT_HTTP_TXN_START);
 
     /*
-     * We do have a transaction. 
+     * We do have a transaction.
      * Probably, both of these will activate this event. This
      * is an implementation detail: where do you want the hook to
      * live, session or transaction ? Should be transparent.
@@ -125,15 +125,15 @@ INKHttpHook(INKCont contp, INKEvent even
     break;
 
   case INK_EVENT_HTTP_SSN_START:
-    /* Reged at the "session" level, all but 
-     * INK_HTTP_TXN_CLOSE_HOOK is received. 
+    /* Reged at the "session" level, all but
+     * INK_HTTP_TXN_CLOSE_HOOK is received.
      */
     inktHookTbl[index(INK_EVENT_HTTP_SSN_START)] = 1;
     ChkEvents(INK_EVENT_HTTP_SSN_START);
 
     /* There has to be some way to get from the session to
      * the transaction. This is how:
-     * No transaction yet, register TXN_START with the session 
+     * No transaction yet, register TXN_START with the session
      */
     INKHttpSsnHookAdd(ssnp, INK_HTTP_TXN_START_HOOK, contp);
 
@@ -143,16 +143,16 @@ INKHttpHook(INKCont contp, INKEvent even
     break;
 
   case INK_EVENT_HTTP_SSN_CLOSE:
-    /* Here as a result of: 
-     * INKHTTPHookAdd(INK_HTTP_SSN_CLOSE_HOOK) 
+    /* Here as a result of:
+     * INKHTTPHookAdd(INK_HTTP_SSN_CLOSE_HOOK)
      */
     inktHookTbl[index(INK_EVENT_HTTP_SSN_CLOSE)] = 1;
 
     /* Assumption: at this point all other events have
      * have been called. Since a session can have one or
      * more transactions, the close of a session should
-     * prompt us to check that all events have been called back 
-     * CAUTION: can a single request trigger all events? 
+     * prompt us to check that all events have been called back
+     * CAUTION: can a single request trigger all events?
      */
     if (ChkEvents(INK_EVENT_HTTP_SSN_CLOSE))
       INKError("INKHttpHook: Fail: All events not called back.\n");
@@ -179,7 +179,7 @@ INKPluginInit(int argc, const char *argv
   if (myCont != NULL) {
 
     /* Reged at the "global" level, these 4 events are
-     * received. 
+     * received.
      */
     INKHttpHookAdd(INK_HTTP_SSN_START_HOOK, myCont);
   } else

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnIPAddress.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnIPAddress.cc?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnIPAddress.cc (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnIPAddress.cc Thu May 13 17:43:56 2010
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 
 
-/* cvrt unsigned int address to dotted decimal address  
+/* cvrt unsigned int address to dotted decimal address
  * delete on the otherside, otherwise: don't care
 */
 char *
@@ -66,7 +66,7 @@ handle_SEND_REQUEST(INKCont contp, INKEv
   int err = 0;
   char *ipAddrp = NULL;
 
-  /* Origin Server (destination) or Parent IP 
+  /* Origin Server (destination) or Parent IP
    * TODO use return addr with an actual network library routine (gethostbyaddr) to validate addr
    * TODO tests with an actual parent proxy
    */
@@ -78,8 +78,8 @@ handle_SEND_REQUEST(INKCont contp, INKEv
   ipAddrp = uint2ddip(nextHopIP);
   INKDebug("INKHttpTxnIPAddress", "INKHttpTxnNextHopIPGet passed for %s", ipAddrp ? ipAddrp : "NULL ptr!");
   INKfree(ipAddrp);
-  /* TODO validate this IP address, not just an integer value 
-   * see below 
+  /* TODO validate this IP address, not just an integer value
+   * see below
    */
   return err;
 }
@@ -89,9 +89,9 @@ handle_SEND_REQUEST(INKCont contp, INKEv
 * INKHttpTxnClientReqGet
 * INKHttpTxnServerIPGet (specific)
 * INKHttpHdrUrlGet
-* INKUrlHostGet 
+* INKUrlHostGet
 * Test is to use the address returend by INKHttpTxnServerIPGet
-* with a standard network interface api and compare that 
+* with a standard network interface api and compare that
 * host with the hostname found in the request URL.
 */
 static int
@@ -150,7 +150,7 @@ handle_OS_DNS(INKCont contp, INKEvent ev
     INKHandleMLocRelease(buf, INK_NULL_MLOC, loc);
     return ++err;
   }
-  /* compare the domains of the hostname 
+  /* compare the domains of the hostname
    * from gethostbyaddr and INKURLHostGet: e.g.:
    * w1.someGiantSite.com with a request of: www.someGiantSite.com
    */
@@ -174,8 +174,8 @@ handle_OS_DNS(INKCont contp, INKEvent ev
   return err;
 }
 
-/* Currently not used.  Interfaces like INKHttpTxnNextHopIPGet 
- * should only be called from SEND_REQUEST, inclusive, forward 
+/* Currently not used.  Interfaces like INKHttpTxnNextHopIPGet
+ * should only be called from SEND_REQUEST, inclusive, forward
 */
 static int
 handle_TXN_START(INKCont contp, INKEvent event, void *eData)
@@ -205,7 +205,7 @@ handle_TXN_CLOSE(INKCont contp, INKEvent
     ++err;                      /* failure */
   }
   /* TODO validate this port, not just an integer value
-   * see below 
+   * see below
    */
 
   /* Client IP for a transaction (not incoming) */
@@ -215,33 +215,33 @@ handle_TXN_CLOSE(INKCont contp, INKEvent
     err++;
   }
   /* TODO validate this IP address, not just an integer value
-   * see below 
+   * see below
    */
 
   /* See: handle_SEND_REQUEST(): nextHopIP = INKHttpTxnNextHopIPGet(txnp);
-   * 
+   *
    * If origin server was contacted, its adress
-   * will be returned. Need a cach hit true/false interface ? 
+   * will be returned. Need a cach hit true/false interface ?
    *
-   * Origin Server (destination) or Parent IP 
+   * Origin Server (destination) or Parent IP
    * TODO tests with an actual parent proxy
    */
   nextHopIP = INKHttpTxnNextHopIPGet(txnp);
   if (!nextHopIP) {
     /* It is the responsibility of the plug-in to store hit/miss
      * details and resolve this as INKHttpTxnNextHopIPGet failure
-     * or cache miss (no o.s. contected). 
+     * or cache miss (no o.s. contected).
      */
     INKDebug("INKHttpTxnIPAddress", "INKHttpTxnNextHopIPGet failed for or cache miss");
     err++;
   }
-  /* TODO validate this IP address, not just an integer value 
-   * see below 
+  /* TODO validate this IP address, not just an integer value
+   * see below
    */
 
-        /*********************************************************** 
-	 * Failure in the following tests will cause remaining tests 
-	 * to not execute. 
+        /***********************************************************
+	 * Failure in the following tests will cause remaining tests
+	 * to not execute.
 	*/
   os_addr = INKHttpTxnServerIPGet(txnp);
   if (!os_addr) {
@@ -260,8 +260,8 @@ handle_TXN_CLOSE(INKCont contp, INKEvent
     /* Allow other test to continue */
   }
 
-  /* 
-   * Get the parent/port that were set at plug-in init 
+  /*
+   * Get the parent/port that were set at plug-in init
    */
   dataPtr = INKContDataGet(contp);
   if (!dataPtr) {
@@ -366,12 +366,12 @@ INKPluginInit(int argc, const char *argv
   INKCont contp = INKContCreate(INKHttpTransaction, NULL);
   INKContDataSet(contp, (void *) parentInfop);  /* Used in txn */
 
-  /* Never: INKfree(parentInfop); 
+  /* Never: INKfree(parentInfop);
    * if you expect to use INKContDataGet
-   * not a leak since TS keeps a reference to this heap 
+   * not a leak since TS keeps a reference to this heap
    * space
    * Here's a leak (bad stuff man!):
-   * 
+   *
    *       ptr = INKmalloc() ;
    *       Init(ptr);
    *       INKConDataSet(contp, ptr);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnServer.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnServer.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnServer.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKHttpTxnServer.c Thu May 13 17:43:56 2010
@@ -47,10 +47,10 @@ const char *const INKEventStrId[] = {
 #define		index(x)	((x)%(1000))
 
 
-/* 
- * handle_dns() from output-header.c: 
- * prints in it's entirety either the 
- * response or the request 
+/*
+ * handle_dns() from output-header.c:
+ * prints in it's entirety either the
+ * response or the request
  * TODO byte for byte buff compare alg that guarantees data integrity for cached and non-cached data buffs
 */
 
@@ -105,7 +105,7 @@ DisplayBufferContents(INKMBuffer bufp, I
     /* We'll get a block pointer back even if there is no data
        left to read so check for this condition and break out of
        the loop. A block with no data to read means we've exhausted
-       buffer of data since if there was more data on a later 
+       buffer of data since if there was more data on a later
        block in the chain, this block would have been skipped over */
     if (block_avail == 0) {
       break;
@@ -136,8 +136,8 @@ DisplayBufferContents(INKMBuffer bufp, I
 
   INKfree(output_string);
 
-  /* Caller reenable the session/transaction: 
-   * INKHttpTxnReenable (txnp, INK_EVENT_HTTP_CONTINUE); 
+  /* Caller reenable the session/transaction:
+   * INKHttpTxnReenable (txnp, INK_EVENT_HTTP_CONTINUE);
    */
 
 }
@@ -166,8 +166,8 @@ handle_READ_REQUEST_HDR(INKCont cont, IN
 
   int err = 0, re = 0;
 
-  /* Non-cached, 
-   * get client req after recieving INK_HTTP_READ_REQUEST_HDR_HOOK 
+  /* Non-cached,
+   * get client req after recieving INK_HTTP_READ_REQUEST_HDR_HOOK
    */
   re = INKHttpTxnClientReqGet(txnp, &reqBuf, &reqBufLoc);
   if (re) {
@@ -191,8 +191,8 @@ handle_READ_RESPONSE_HDR(INKCont contp, 
 
   int err = 0, re = 0;
 
-  /* Non-cached, 
-   * get "client" resp after recieving INK_HTTP_READ_RESPONSE_HDR_HOOK 
+  /* Non-cached,
+   * get "client" resp after recieving INK_HTTP_READ_RESPONSE_HDR_HOOK
    */
   re = INKHttpTxnClientRespGet(txnp, &respBuf, &respBufLoc);
   if (re) {

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKProto.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKProto.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKProto.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKHttpHooksTrans/INKProto.c Thu May 13 17:43:56 2010
@@ -60,7 +60,7 @@ INKPluginInit(int argc, const char *argv
   INKCont contp = INKContCreate(INKProto, NULL);
 
   /* Context: INKHttpTxnTransformRespGet():
-   * Q: are both of these received and if so, in what order? 
+   * Q: are both of these received and if so, in what order?
    */
   INKHttpHookAdd(INK_HTTP_READ_RESPONSE_HDR_HOOK, contp);
   INKHttpHookAdd(INK_HTTP_RESPONSE_TRANSFORM_HOOK, contp);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/INKNetConnect/INKNetConnectTest.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/INKNetConnect/INKNetConnectTest.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/INKNetConnect/INKNetConnectTest.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/INKNetConnect/INKNetConnectTest.c Thu May 13 17:43:56 2010
@@ -133,7 +133,7 @@ ReadCheck(INKCont contp, CheckData_T * p
   int Avail;
 
   if (INK_HTTP_TYPE_REQUEST != INKHttpHdrTypeGet(pCheckData->m_Buffer, pCheckData->m_ClientHeaderLoc)) {
-    /* If the function returns something else, the transaction was canceled. 
+    /* If the function returns something else, the transaction was canceled.
        Therefore don't do anything...simply exit... */
     Log("HTTP header was not a INK_HTTP_TYPE_REQUEST (in ReadCheck)");
     /*fwrite (pCheckData->m_Buffer, pCheckData->m_ClientHeaderLoc, 1,stderr); */

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/add-header-deprecated/add-header.deprecated.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/add-header-deprecated/add-header.deprecated.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/add-header-deprecated/add-header.deprecated.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/add-header-deprecated/add-header.deprecated.c Thu May 13 17:43:56 2010
@@ -21,15 +21,15 @@
   limitations under the License.
  */
 
-/* add-header.c: a plugin that adds MIME headers to 
+/* add-header.c: a plugin that adds MIME headers to
  *               client request headers.
  *
  *
- *   Usage: 
+ *   Usage:
  *   (NT): AddHeader.dll "name1: value1" "name2: value2" ...
  *   (Solaris): add-header.so "name1: value1" "name2: value2" ...
  *
- *          namei and valuei are the name and value of the 
+ *          namei and valuei are the name and value of the
  *          ith MIME header to be added to the client request
  */
 

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/alt-info/alt-info.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/alt-info/alt-info.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/alt-info/alt-info.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/alt-info/alt-info.c Thu May 13 17:43:56 2010
@@ -57,7 +57,7 @@
 }
 
 
-/*********************************************************************** 
+/***********************************************************************
  * play with the functions in the INKHttpAltInfo* group
  ***********************************************************************/
 static void
@@ -106,11 +106,11 @@ handle_select_alt(INKHttpAltInfo infop)
   if (INKHttpAltInfoCachedRespGet(infop, &cache_resp_buf, &cache_resp_hdr) != INK_SUCCESS)
     LOG_ERROR_AND_CLEANUP("INKHttpAltInfoCachedRespGet");
 
-  /* 
+  /*
    * get the Accept-Language field value from the client request
    * get the Content-language field value from the cached response
    * if these two values are equivalent, set the quality of this alternate to 1
-   * otherwise set it to 0 
+   * otherwise set it to 0
    */
   if ((accept_language_field = INKMimeHdrFieldRetrieve(client_req_buf, client_req_hdr,
                                                        INK_MIME_FIELD_ACCEPT_LANGUAGE)) == INK_ERROR_PTR)

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/append-transform-deprecated/append-transform.deprecated.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/append-transform-deprecated/append-transform.deprecated.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/append-transform-deprecated/append-transform.deprecated.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/append-transform-deprecated/append-transform.deprecated.c Thu May 13 17:43:56 2010
@@ -24,15 +24,15 @@
 /*
  * append-transform.c:  an example program that appends the text
  *                      contained in a file to all HTTP/text response
- *                      bodies.  
- *                    
+ *                      bodies.
  *
  *
- *	Usage:	
+ *
+ *	Usage:
  * 	(NT): AppendTransform.dll <filename>
  * 	(Solaris): append-transform.so <filename>
- * 
- *              <filename> is the name of the file containing the 
+ *
+ *              <filename> is the name of the file containing the
  *              text to be appended
  *
  */

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/assembly/assembly.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/assembly/assembly.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/assembly/assembly.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/assembly/assembly.c Thu May 13 17:43:56 2010
@@ -24,10 +24,10 @@
 
 /*
  * assembly.c: plugin to dynamically assemble pages.
- *                   
  *
  *
- *	Usage:	
+ *
+ *	Usage:
  *	  assembly.so <cache_port>
  *
  *
@@ -35,7 +35,7 @@
  *
  */
 
-/* 
+/*
 
   PAGE TEMPLATE SYNTAX
   ---------------------
@@ -44,7 +44,7 @@
 
   <TEMPLATE>
       TEMPLATENAME=String         // Unique identifier for the template
-                                  
+
 
       CACHEABLE="true"|"false"    // Is this template cacheable ?
                                   // If not, template will be fetch from OS
@@ -71,7 +71,7 @@
       URL=String                  // Url to use to fetch the block
                                   // ${QUERYSTRING} is substituted client request
 				  // query string
-      
+
       CACHESIZE=Integer           // Max number of different version of this
                                   // block stored in the cache
 
@@ -147,7 +147,7 @@ Example:
    - Cache the assembled page
        To be done in the final release. The assembled page
        should be cached in the dynamic partition of the cache.
-       
+
        Make sure it is really realistic to cache assembled page:
        Potentially, the # of assembled page can be huge.
        What is the chance to hit an assembled page ?
@@ -288,7 +288,7 @@ strstr_block(const char *block, const ch
 /*-------------------------------------------------------------------------
   print_iobuffer
 
-  Prints out an iobuffer on the standard output 
+  Prints out an iobuffer on the standard output
   -------------------------------------------------------------------------*/
 static void
 print_iobuffer(INKIOBuffer buf)
@@ -595,7 +595,7 @@ asm_input_buffer(INKCont contp, AsmData 
   INKAssert(data->magic == MAGIC_ALIVE);
   INKDebug(MED, "In asm_input_buffer");
 
-  /* If it's the first time the function is called, we need to create 
+  /* If it's the first time the function is called, we need to create
      the input buffer. */
   if (!data->input_buffer) {
     /* Create the buffer into which the upstream connection will
@@ -2695,7 +2695,7 @@ check_ts_version()
 /*-------------------------------------------------------------------------
   INKPluginInit
 
-  
+
   -------------------------------------------------------------------------*/
 void
 INKPluginInit(int argc, const char *argv[])

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/basic-auth-deprecated/basic-auth.deprecated.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/basic-auth-deprecated/basic-auth.deprecated.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/basic-auth-deprecated/basic-auth.deprecated.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/basic-auth-deprecated/basic-auth.deprecated.c Thu May 13 17:43:56 2010
@@ -24,9 +24,9 @@
 /* basic-auth.c: a plugin that performs basic HTTP proxy
  *               authentication
  *
- * 
- * Usage: 
- * (NT): BasicAuth.dll 
+ *
+ * Usage:
+ * (NT): BasicAuth.dll
  * (Solaris): basic-auth.so
  *
  */
@@ -84,24 +84,24 @@ base64_decode(const char *input)
 static int
 authorized(char *user, char *password)
 {
-  /* 
-   * This routine checks the validity of the user name and 
+  /*
+   * This routine checks the validity of the user name and
    * password. Sample NT code is provided for illustration.
    * For UNIX systems, enter your own authorization code
-   * here. 
+   * here.
    */
 
 #if !defined (_WIN32)
 
 #else
-  // LogonUser() will work only if the account is set with 
+  // LogonUser() will work only if the account is set with
   // SE_TCB_NAME privilege. If SE_TCB_NAME is missing,
   // Traffic server will attempt to  add this privilege to
   // the running account, but may fail depending on the access
-  // levels provided to the said account. In such a case, an 
-  // NT systems administrator will have to set the privilege 
+  // levels provided to the said account. In such a case, an
+  // NT systems administrator will have to set the privilege
   // "Act as part of the operating system" from the NT user manager.
-  // 
+  //
   int nErr = 0;
   HANDLE hToken = 0;
   BOOL bRet = LogonUser(user, NULL, password, LOGON32_LOGON_NETWORK,

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/blacklist-1-neg/blacklist-1-neg.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/blacklist-1-neg/blacklist-1-neg.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/blacklist-1-neg/blacklist-1-neg.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/blacklist-1-neg/blacklist-1-neg.c Thu May 13 17:43:56 2010
@@ -21,16 +21,16 @@
   limitations under the License.
  */
 
-/* blacklist-1.c:  an example program that denies client access                 
+/* blacklist-1.c:  an example program that denies client access
  *                 to blacklisted sites. This plugin illustrates
- *                 how to use configuration information from a 
+ *                 how to use configuration information from a
  *                 configuration file (blacklist.txt) that can be
  *                 updated through the Traffic Manager UI.
  *
  *
- *	Usage:	
- *	(NT) : BlackList.dll 
- *	(Solaris) : blacklist-1.so 
+ *	Usage:
+ *	(NT) : BlackList.dll
+ *	(Solaris) : blacklist-1.so
  *
  *
  */
@@ -105,7 +105,7 @@ handle_dns(INKHttpTxn txnp, INKCont cont
   }
 
   /*  the continuation we are dealing here is created for each transaction.
-     since the transactions themselves have a mutex associated to them, 
+     since the transactions themselves have a mutex associated to them,
      we don't need to lock that mutex explicitly. */
   for (i = 0; i < nsites; i++) {
     if (strncmp(host, sites[i], host_length) == 0) {
@@ -130,7 +130,7 @@ handle_dns(INKHttpTxn txnp, INKCont cont
 
 done:
   INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
-  /* If not a blacklist site, then destroy the continuation created for 
+  /* If not a blacklist site, then destroy the continuation created for
      this transaction */
   cd = (cdata *) INKContDataGet(contp);
   INKfree(cd);
@@ -195,7 +195,7 @@ handle_response(INKHttpTxn txnp, INKCont
 
 done:
   INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
-  /* After everything's done, Destroy the continuation 
+  /* After everything's done, Destroy the continuation
      created for this transaction */
   cd = (cdata *) INKContDataGet(contp);
   INKfree(cd);
@@ -303,9 +303,9 @@ blacklist_plugin(INKCont contp, INKEvent
       break;
     }
   case INK_EVENT_TIMEOUT:
-    /* when mutex lock is not acquired and continuation is rescheduled, 
-       the plugin is called back with INK_EVENT_TIMEOUT with a NULL 
-       edata. We need to decide, in which function did the MutexLock 
+    /* when mutex lock is not acquired and continuation is rescheduled,
+       the plugin is called back with INK_EVENT_TIMEOUT with a NULL
+       edata. We need to decide, in which function did the MutexLock
        failed and call that function again */
     if (contp != global_contp) {
       cd = (cdata *) INKContDataGet(contp);

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/check-constants/check-constants.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/check-constants/check-constants.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/check-constants/check-constants.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/check-constants/check-constants.c Thu May 13 17:43:56 2010
@@ -24,8 +24,8 @@
 /*****************************************************************************
  * check-constants
  *
- * Description:	This sample plugins simply compares all the constants 
- *				values in the curent ts/ts.h against the values as they 
+ * Description:	This sample plugins simply compares all the constants
+ *				values in the curent ts/ts.h against the values as they
  *				exist in the SDK 2.0 FCS ts/ts.h, and prints them out if they
  *				happen to differ.
  *****************************************************************************/

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/check-http/check-http-0.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/check-http/check-http-0.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/check-http/check-http-0.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/check-http/check-http-0.c Thu May 13 17:43:56 2010
@@ -26,15 +26,15 @@
  *
  * Description: Covers HTTP section of Chap 7.
  *
- * APIs covered - 
+ * APIs covered -
  * - INKHttpHdrLengthGet
  * - INKHttpHdrMethodGet/Set
  * - INKHttpHdrReasonGet/Set
  * - INKHttpHdrStatusGet/Set
  * - INKHttpHdrTypeGet/Set
  * - INKHttpHdrVersionGet/Set
- * 
- * APIs not covered - 
+ *
+ * APIs not covered -
  * - INKHttpHdrUrlGet/Set (covered in check-url-0)
  * - INKHttpHdrReasonLookup
  * - INKHttpHdrPrint (covered in output-hdr.c)
@@ -342,7 +342,7 @@ negTesting(INKMBuffer hdrBuf, INKMLoc ht
 /************************************************************************************
  * identical_hdr:
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  Function to check whether 2 hdrInfos are identical (member to member)
  *
  * RETURN:
@@ -391,7 +391,7 @@ identical_hdr(HdrInfo_T * pHdrInfo1, Hdr
 /************************************************************************************
  * getHdrInfo:
  *
- * DESCRIPTION: 
+ * DESCRIPTION:
  *  Function to store httpHdrBuffer (pointed by hdrBuf) information into pHdrInfo
  *
  * RETURN:
@@ -639,10 +639,10 @@ handleSendResponse(INKCont pCont, INKHtt
   INKDebug(RESP, "--------------------------------");
 
     /*** INKHttpHdrTypeSet ***/
-  /* ERROR: 
-   * 1. Setting type other than INK_HTTP_TYPE_UNKNOWN, INK_HTTP_TYPE_REQUEST, 
+  /* ERROR:
+   * 1. Setting type other than INK_HTTP_TYPE_UNKNOWN, INK_HTTP_TYPE_REQUEST,
    * INK_HTTP_TYPE_RESPONSE, and,
-   * 2. Setting the type twice.  The hdr type has been already set during INKHttpHdrCopy 
+   * 2. Setting the type twice.  The hdr type has been already set during INKHttpHdrCopy
    * above, so setting it again is incorrect */
   if (INKHttpHdrTypeSet(newHttpHdrBuf, newHttpHdrLoc, INK_HTTP_TYPE_RESPONSE) == INK_ERROR) {
     LOG_API_ERROR("INKHttpHdrTypeSet");
@@ -657,10 +657,10 @@ handleSendResponse(INKCont pCont, INKHtt
     sOldHttpReason = INKstrndup(sHttpHdrReason, iHttpHdrReasonLength);
   }
 
-  /* Note: 
+  /* Note:
    * INKHttpHdrReasonGet may return a NULL reason string (for e.g. I tried www.eyesong.8m.com).
-   * Do NOT assume that INKstrndup always returns a null terminated string.  INKstrndup does 
-   * not returns a NULL terminated string for a NULL ptr as i/p parameter.  It simply returns 
+   * Do NOT assume that INKstrndup always returns a null terminated string.  INKstrndup does
+   * not returns a NULL terminated string for a NULL ptr as i/p parameter.  It simply returns
    * it backs. So functions like strlen() on the return value might cause TS to crash */
 
 
@@ -711,7 +711,7 @@ handleSendResponse(INKCont pCont, INKHtt
 
   /* Restore the original values */
 
-  /* Here we can't use strlen(sOldHttpReason) to set the length.  This would crash TS if 
+  /* Here we can't use strlen(sOldHttpReason) to set the length.  This would crash TS if
    * sOldHttpReason happens to be NULL */
   if (INKHttpHdrReasonSet(newHttpHdrBuf, newHttpHdrLoc, sOldHttpReason, iHttpHdrReasonLength) == INK_ERROR) {
     LOG_API_ERROR("INKHttpHdrReasonSet");
@@ -773,8 +773,8 @@ resp_4:
 
 
     /*** INKHttpHdrTypeSet ***/
-  /* ERROR: 
-   * 1. Setting type other than INK_HTTP_TYPE_UNKNOWN, INK_HTTP_TYPE_REQUEST, 
+  /* ERROR:
+   * 1. Setting type other than INK_HTTP_TYPE_UNKNOWN, INK_HTTP_TYPE_REQUEST,
    * INK_HTTP_TYPE_RESPONSE and,
    * 2. Setting the type twice.  The hdr type has been already set during INKHttpTxnClientRespGet
    * above, so setting it again should fail */
@@ -804,7 +804,7 @@ resp_4:
 
   /* restore the original values */
 
-  /* For INKHttpHdrReasonSet, do NOT use strlen(sOldHttpReason) to set the length.  
+  /* For INKHttpHdrReasonSet, do NOT use strlen(sOldHttpReason) to set the length.
    * This would crash TS if sOldHttpReason happened to be NULL */
   if (INKHttpHdrReasonSet(respHdrBuf, respHttpHdrLoc, sOldHttpReason, iHttpHdrReasonLength) == INK_ERROR) {
     LOG_API_ERROR("INKHttpHdrReasonSet");
@@ -974,7 +974,7 @@ handleReadRequest(INKCont pCont, INKHttp
 #endif
 
     /*********** (2): Create/Copy/Destroy **********/
-  /* For every request, create, copy and destroy a new HTTP header and 
+  /* For every request, create, copy and destroy a new HTTP header and
    * print the details */
 
   INKDebug(REQ, "--------------------------------");

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/check-mime-1/check-mime-1.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/check-mime-1/check-mime-1.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/check-mime-1/check-mime-1.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/check-mime-1/check-mime-1.c Thu May 13 17:43:56 2010
@@ -118,7 +118,7 @@ printHeader(INKMBuffer bufp, INKMLoc hdr
     /* We'll get a block pointer back even if there is no data
        left to read so check for this condition and break out of
        the loop. A block with no data to read means we've exhausted
-       buffer of data since if there was more data on a later 
+       buffer of data since if there was more data on a later
        block in the chain, this block would have been skipped over */
     if (block_avail == 0) {
       break;
@@ -159,11 +159,11 @@ Lcleanup:
     INKfree(output_string);
 }
 
-/* 
+/*
  * Play with the functions in INKMimeHdr* and INKMimeParser* categories.
  * This function covers the following functions:
  *   - INKMimeHdrParse
- *   - INKMimeParserClear 
+ *   - INKMimeParserClear
  *   - INKMimeParserCreate
  *   - INKMimeParserDestroy
  *

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime-0.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime-0.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime-0.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime-0.c Thu May 13 17:43:56 2010
@@ -300,7 +300,7 @@ printHeader(INKMBuffer bufp, INKMLoc hdr
     /* We'll get a block pointer back even if there is no data
        left to read so check for this condition and break out of
        the loop. A block with no data to read means we've exhausted
-       buffer of data since if there was more data on a later 
+       buffer of data since if there was more data on a later
        block in the chain, this block would have been skipped over */
     if (block_avail == 0) {
       break;
@@ -633,9 +633,9 @@ sectionMimeHdr(INKMBuffer hdrBuf, INKMLo
 
     /* CAUTION: (reference - INKqa8336)
      * Here we are doing a INKMimeHdrCopy without creating a HTTP header first.
-     * So the dest MIME header (tmpMimeHdrLoc) is not associated with any HTTP header.  
-     * This is hardly ever the case, and should NOT be practised in general.  I am 
-     * doing so merely to test the API's functional correctness and NOT to suggest 
+     * So the dest MIME header (tmpMimeHdrLoc) is not associated with any HTTP header.
+     * This is hardly ever the case, and should NOT be practised in general.  I am
+     * doing so merely to test the API's functional correctness and NOT to suggest
      * a possible usage of the API */
 
     if ((tmpBuf = INKMBufferCreate()) == INK_ERROR_PTR) {
@@ -742,10 +742,10 @@ sectionMimeHdr(INKMBuffer hdrBuf, INKMLo
                 /****** section (6) ******/
     /* -----------------------------------------------------------------------
      * Now, insert some fields into the MIME buffer
-     * Note: 
+     * Note:
      *      1. Field name can be set before and/or after INKMimeHdrFieldInsert
      *      2. Field value could be set *only* after INKMimeHdrFieldValueInsert
-     *      
+     *
      * (point 1. and 2. implies that its possible to insert fields with empty
      * name and values)
      * -----------------------------------------------------------------------*/

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/check-mime/check-mime.c Thu May 13 17:43:56 2010
@@ -24,8 +24,8 @@
 /**************************************************************
  * Sample-1.c
  *
- * Plugin to test all the HTTP Header functions to make sure 
- * SDK 2.0 plugins developed on Panda are binary compatible 
+ * Plugin to test all the HTTP Header functions to make sure
+ * SDK 2.0 plugins developed on Panda are binary compatible
  * with Tomcat (on Sol only).
  *
  **************************************************************/
@@ -234,10 +234,10 @@ sectionMimeHdr(INKMBuffer hdrBuf, INKMLo
                 /**** section 3 ****/
     /* --------------------------------------------------------------------
      * Now, insert some fields into the MIME buffer
-     * Note: 
+     * Note:
      *      1. Field name can be set before/after INKMimeHdrFieldInsert
      *      2. Field value could be set *only* after INKMimeHdrFieldValueInsert
-     *      
+     *
      * (Point 1. and 2. implies that its possible to insert fields with empty
      * name and values)
      * --------------------------------------------------------------------*/

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/climate/climate.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/climate/climate.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/climate/climate.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/climate/climate.c Thu May 13 17:43:56 2010
@@ -21,13 +21,13 @@
   limitations under the License.
 
   @section details Details
- 
-  Log information regarding transactions (headers, bytes, 
+
+  Log information regarding transactions (headers, bytes,
   timing) in a specific log file (climate.log).
 
   Used by the Climate Lab log analysis that needs precise
   timing information not available in custom logs.
- 
+
   Basic design:
 
   1. INK_HTTP_TXN_START_HOOK is added to the main plug-in
@@ -609,7 +609,7 @@ retrieve_transaction_info(INKHttpTxn txn
 /*-------------------------------------------------------------------------
   log_transaction_info
 
-  Log all request and response info 
+  Log all request and response info
   Returns SUCCESS/FAILURE
   -------------------------------------------------------------------------*/
 static int
@@ -658,7 +658,7 @@ log_transaction_info(INKCont contp, Tran
                         data->server_req_hdr_bytes,
                         data->server_req_body_bytes,
                         data->server_resp_hdr_bytes, data->server_resp_body_bytes, (long) txn_time,
-/*  Microseconds are enough. Log actual times instead of differences in case different differences 
+/*  Microseconds are enough. Log actual times instead of differences in case different differences
     become of interest */
                         data->txn_start_time / 1000,
                         data->read_request_hdr_time / 1000,

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/cluster-RPC/clusterRPC.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/cluster-RPC/clusterRPC.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/cluster-RPC/clusterRPC.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/cluster-RPC/clusterRPC.c Thu May 13 17:43:56 2010
@@ -22,15 +22,15 @@
  */
 
 /* clusterRPC.c:  Example usage of the Cluster RPC API
- *                   
+ *
  **************************************************************************
  *   INTERNAL USE ONLY.  NOT FOR GENERAL DISTRIBUTION.
  **************************************************************************
  *
  *
- *	Usage:	
- * 	(NT): clusterRPC.dll 
- * 	(Solaris): clusterRPC.so 
+ *	Usage:
+ * 	(NT): clusterRPC.dll
+ * 	(Solaris): clusterRPC.so
  *
  *
  */

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/lookup/lookup.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/lookup/lookup.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/lookup/lookup.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/lookup/lookup.c Thu May 13 17:43:56 2010
@@ -32,7 +32,7 @@
 #define TIMEOUT 10
 
 /**************************************************
-   Log macros for error code return verification 
+   Log macros for error code return verification
 **************************************************/
 #define PLUGIN_NAME "lookup"
 #define VALID_POINTER(X) ((X != NULL) && (X != INK_ERROR_PTR))
@@ -143,8 +143,8 @@ destroyContData(INKCont txn_contp)
     Call the API at a bad hook and
     verify it returns an error
 **************************************/
-/* Comment out because it seems to be 
-   working at every hook after 
+/* Comment out because it seems to be
+   working at every hook after
    INK_HTTP_TXN_CACHE_LOOKUP_COMPLETE */
 /* void neg_cache_lookup_bad_hook(INKHttpTxn txnp) { */
 /*     LOG_SET_FUNCTION_NAME("neg_cache_lookup_bad_hook"); */
@@ -204,8 +204,8 @@ fake_handler2(INKCont fake_contp, INKEve
 
 /**************************************
     Negative testing 1 for host lookup:
-    Call the INKHostLookup with bad 
-    arguments and verify it returns an 
+    Call the INKHostLookup with bad
+    arguments and verify it returns an
     error
 **************************************/
 void
@@ -234,7 +234,7 @@ neg1_host_lookup()
       INKContDestroy(fake_contp1);
 
       /* Call with a 0 HOSTNAME_LENGTH */
-      /* Use different continuation to call this API because it is reentrant, 
+      /* Use different continuation to call this API because it is reentrant,
          i.e. we might use fake_contp1 while it has already been destroyed */
       pending_action = INKHostLookup(fake_contp2, HOSTNAME, 0);
       if (pending_action != INK_ERROR_PTR) {
@@ -249,8 +249,8 @@ neg1_host_lookup()
 
 /**************************************
     Negative testing 2 for host lookup:
-    Call the INKHostLookupResultIPGet 
-    with NULL lookup result and verify 
+    Call the INKHostLookupResultIPGet
+    with NULL lookup result and verify
     it returns an error
 **************************************/
 void
@@ -267,8 +267,8 @@ neg2_host_lookup()
 }
 
 /**************************************************
-    This function is called to verify that the 
-    value returned by INKHttpTxnClientRemotePortGet 
+    This function is called to verify that the
+    value returned by INKHttpTxnClientRemotePortGet
     remains consistent along the HTTP state machine
 ***************************************************/
 int
@@ -283,7 +283,7 @@ check_client_port(INKHttpTxn txnp, ContD
     LOG_ERROR_AND_RETURN("INKHttpTxnClientRemotePortGet");
   } else {
     INKDebug(DEBUG_TAG, "INKHttpTxnClientRemotePortGet returned %d", clientPortGot);
-    /* Make sure the client port was set at Read_request hook, to avoid 
+    /* Make sure the client port was set at Read_request hook, to avoid
        firing the assert because the client aborted */
     if (contData->client_port != 0) {
       if (clientPortGot != contData->client_port) {
@@ -328,7 +328,7 @@ handle_txn_close(INKHttpTxn txnp, INKCon
 }
 
 /***************************************************
-   Insert the Host-IP header in the client response 
+   Insert the Host-IP header in the client response
 ***************************************************/
 int
 handle_send_response(INKHttpTxn txnp, ContData * contData)
@@ -670,8 +670,8 @@ Lcleanup:
   }
 
   /* Call INKHostLookup */
-  /* Called completly at the end because right after the call, 
-     the DNS processor might call back txn_contp wih the 
+  /* Called completly at the end because right after the call,
+     the DNS processor might call back txn_contp wih the
      INK_EVENT_HOST_LOOKUP, and txnp will be reenabled while
      txnp is still being accessed in this handler, that would
      be bad!!! */
@@ -689,15 +689,15 @@ Lcleanup:
    - be called back by the DNS processor when the host lookup is done
    - store all the transaction specific data
    Tricks:
-   - when called back with INK_EVENT_HTTP_READ_REQUEST_HDR, do not 
-   reenable the transaction, instead return, and reenable the 
-   transaction when called back with INK_EVENT_HOST_LOOKUP, so that 
+   - when called back with INK_EVENT_HTTP_READ_REQUEST_HDR, do not
+   reenable the transaction, instead return, and reenable the
+   transaction when called back with INK_EVENT_HOST_LOOKUP, so that
    when we don't need to maintain a state in the continuation. And
    also when we need the host lookup result at the send response hook
    we are sure that the result will be available.
-   - we don't need a lock for this continuation because we are garanteed 
+   - we don't need a lock for this continuation because we are garanteed
    that we will be called back for only one HTTP hook at a time, and the
-   asynchronous part (host lookup) 
+   asynchronous part (host lookup)
 **********************************************************************/
 static int
 txn_cont_handler(INKCont txn_contp, INKEvent event, void *edata)
@@ -756,8 +756,8 @@ txn_cont_handler(INKCont txn_contp, INKE
         /*********************/
   case INK_EVENT_HOST_LOOKUP:
     if (contData == INK_ERROR_PTR) {
-      /* In this case we are stuck, we cannot get the continuation 
-         data which contains the HTTP txn pointer, i.e. we cannot 
+      /* In this case we are stuck, we cannot get the continuation
+         data which contains the HTTP txn pointer, i.e. we cannot
          reenable the transaction, so we might as well assert here */
       LOG_ERROR("INKContDataGet");
       INKReleaseAssert(!"Could not get contp data");
@@ -796,9 +796,9 @@ txn_cont_handler(INKCont txn_contp, INKE
     When the global plugin continuation is called back here:
     - for every HTTP txn, it creates a continuation
     - init the continuation data
-    - set the transaction pointer to the mother HTTP txn. This 
+    - set the transaction pointer to the mother HTTP txn. This
     pointer is part of the daughter continuation's data.
-    - registers the new continuation to be called back for all 
+    - registers the new continuation to be called back for all
     other HTTP hooks.
 ***************************************************************/
 int
@@ -908,7 +908,7 @@ handle_txn_start(INKHttpTxn txnp)
 
 /********************************************************
    Plugin Continuation handler:
-   The plugin continuation will be called back by every 
+   The plugin continuation will be called back by every
    HTTP transaction when it reach INK_HTTP_TXN_START_HOOK
 ********************************************************/
 static int
@@ -936,11 +936,11 @@ plugin_cont_handler(INKCont contp, INKEv
 }
 
 /********************************************************
-   Parse the 2 eventual arguments passed to the plugin, 
+   Parse the 2 eventual arguments passed to the plugin,
    else use the defaults.
-   Here, there is no need to grab the HOSTNAME_LOCK, this 
-   code should be executes before any HTTP state machine 
-   is created. 
+   Here, there is no need to grab the HOSTNAME_LOCK, this
+   code should be executes before any HTTP state machine
+   is created.
    Register globally INK_HTTP_TXN_START_HOOK
 ********************************************************/
 void

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin1.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin1.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin1.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin1.c Thu May 13 17:43:56 2010
@@ -21,21 +21,21 @@
   limitations under the License.
  */
 
-/* orderplugin1.c: one of the set of 5 plugins that help determine if  
+/* orderplugin1.c: one of the set of 5 plugins that help determine if
  *                 the order in which the plugins are invoked at any
  *                 hook is the same as the order in which they appear
- *                 in plugin.config file. The plugin logs an error 
+ *                 in plugin.config file. The plugin logs an error
  *                 message in logs/error.log file if the sequence in
  *                 which the plugin is invoked is incorrect.
  *
  *
- *   Usage: 
+ *   Usage:
  *   (NT):orderplugin1.dll valuei
  *   (Solaris):orderplugin1.so valuei
- *  
- *   valuei is the order in which the plugin name appears in 
- *          plugin.config file among the set of the 5 plugins 
- *          (ignore orderstartplugin.so). 
+ *
+ *   valuei is the order in which the plugin name appears in
+ *          plugin.config file among the set of the 5 plugins
+ *          (ignore orderstartplugin.so).
  *          i.e. If the plugin is listed on top of the other
  *           3 plugins then valuei is 1.
  *

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin2.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin2.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin2.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin2.c Thu May 13 17:43:56 2010
@@ -21,21 +21,21 @@
   limitations under the License.
  */
 
-/* orderplugin2.c: one of the set of 5 plugins that help determine if  
+/* orderplugin2.c: one of the set of 5 plugins that help determine if
  *                 the order in which the plugins are invoked at any
  *                 hook is the same as the order in which they appear
- *                 in plugin.config file. The plugin logs an error 
+ *                 in plugin.config file. The plugin logs an error
  *                 message in logs/error.log file if the sequence in
  *                 which the plugin is invoked is incorrect.
  *
  *
- *   Usage: 
+ *   Usage:
  *   (NT):orderplugin2.dll valuei
  *   (Solaris):orderplugin2.so valuei
- *  
- *   valuei is the order in which the plugin name appears in 
- *          plugin.config file among the set of the 5 plugins 
- *          (ignore orderstartplugin.so). 
+ *
+ *   valuei is the order in which the plugin name appears in
+ *          plugin.config file among the set of the 5 plugins
+ *          (ignore orderstartplugin.so).
  *          i.e. If the plugin is listed on top of the other
  *           3 plugins then valuei is 1.
  *

Modified: trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin3.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin3.c?rev=943951&r1=943950&r2=943951&view=diff
==============================================================================
--- trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin3.c (original)
+++ trafficserver/traffic/tags/2.1.0/test/plugin/order/orderplugin3.c Thu May 13 17:43:56 2010
@@ -21,21 +21,21 @@
   limitations under the License.
  */
 
-/* orderplugin3.c: one of the set of 54 plugins that help determine if  
+/* orderplugin3.c: one of the set of 54 plugins that help determine if
  *                 the order in which the plugins are invoked at any
  *                 hook is the same as the order in which they appear
- *                 in plugin.config file. The plugin logs an error 
+ *                 in plugin.config file. The plugin logs an error
  *                 message in logs/error.log file if the sequence in
  *                 which the plugin is invoked is incorrect.
  *
  *
- *   Usage: 
+ *   Usage:
  *   (NT):orderplugin3.dll valuei
  *   (Solaris):orderplugin3.so valuei
- *  
- *   valuei is the order in which the plugin name appears in 
- *          plugin.config file among the set of the 5 plugins 
- *          (ignore orderstartplugin.so). 
+ *
+ *   valuei is the order in which the plugin name appears in
+ *          plugin.config file among the set of the 5 plugins
+ *          (ignore orderstartplugin.so).
  *          i.e. If the plugin is listed on top of the other
  *           3 plugins then valuei is 1.
  *