1. 06 Aug, 2008 3 commits
  2. 05 Aug, 2008 1 commit
  3. 04 Aug, 2008 1 commit
  4. 01 Aug, 2008 12 commits
  5. 31 Jul, 2008 16 commits
  6. 30 Jul, 2008 3 commits
  7. 27 Jul, 2008 1 commit
  8. 25 Jul, 2008 3 commits
    • Poul-Henning Kamp's avatar
      Change param thread_pool_min to be the minimum number of threads per · 61a4f7de
      Poul-Henning Kamp authored
      pool, and don't be so stingy with them: default to five.
      
      Make sure we really do create the minimum complement of threads.
      
      
      
      git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3028 d4fa192b-c00b-0410-8231-f00ffab90ce4
      61a4f7de
    • Poul-Henning Kamp's avatar
      · 714e0ef6
      Poul-Henning Kamp authored
      NB: Be careful with -trunk, this is a quite intrusive change.
      
      Continue the progress on synthetic/error pages
      
      The default "guru meditation" is now generated from the vcl_error {}
      function, which can be redefined to whatever suits your taste.
      
      Techinical:
      
      Add new vcl_error method and make variables available in it.
      
      Fix a bug in "error" action, where the numeric argument would not get
      interpreted correctly if it came from a variable like obj.status.
      
      Forbid "error" action in vcl_deliver since vcl_error now goes to
      vcl_deliver to send the error object.
      
      Fix test v00001 to reflect this.
      
      Move the obj->ws/http initialization to preallocation time to avoid
      duplication.
      
      Add read-only variable req.xid (a string!)
      
      Add default guru meditation to default vcl.
      
      Remove cache_synthetic.c which is now unecessary.
      
      
      
      
      git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3027 d4fa192b-c00b-0410-8231-f00ffab90ce4
      714e0ef6
    • Poul-Henning Kamp's avatar
      Add a facility to constructing a synthetic object from VCL. · f2fb353a
      Poul-Henning Kamp authored
      This is just the initial version and it doesn't quite work the way
      we need it to yet, but the idea is to be able to say:
      
      	sub vcl_fetch {
      	    if (obj.status == 503) {
      		synthetic {"
      		    <HTML>
      		    <H1>Sorry, could not contact the backend server</H1>
      		    <P>
      			Try again later.
      		    </P>
      		    <HR>
      		    <PRE>
      			URL: "}  req.url {"
      			User Agnet: "} req.http.user-agent {"
      		    </PRE>
      		    </HTML>
      		"};
      	    }
      	}
      
      A new VCL syntactic element have been introduced to do this: "the
      long string".   A long string is anything from {" to "}, newlines,
      controlcharacters and all.  (Normal "..." strings cannot contain
      control characters.
      
      Technical details:
      
      Don't NULL terminate string sequences in VRT context, we may have
      NULL cropping up as a legal value if a header is missing, add the
      magic "vrt_magic_string_end" for terminating string contactenation.
      
      
      git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3026 d4fa192b-c00b-0410-8231-f00ffab90ce4
      f2fb353a