Show
Ignore:
Timestamp:
06/09/09 12:41:38 (14 months ago)
Author:
phk
Message:

Remove the vcl_timeout{} VCL callback.

We had big plans for this originally, but none of them have materialized
because there are better ways to do those things.

For instance: why invent a lot of code to do prefetch, when wget(1) can
do the job already ?

Getting rid of vcl_timeout{} (and vcl_discard{}, see yesterdays commit)
simplifies the expiry codes locking and statekeeping significantly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/varnish-cache/include/vcl.h

    r4099 r4100  
    2323#define VCL_MET_FETCH           (1 << 6) 
    2424#define VCL_MET_DELIVER         (1 << 7) 
    25 #define VCL_MET_TIMEOUT         (1 << 8) 
    26 #define VCL_MET_ERROR           (1 << 9) 
     25#define VCL_MET_ERROR           (1 << 8) 
    2726 
    28 #define VCL_MET_MAX             10 
     27#define VCL_MET_MAX             9 
    2928 
    3029/* VCL Returns */ 
     
    7069        vcl_func_f      *fetch_func; 
    7170        vcl_func_f      *deliver_func; 
    72         vcl_func_f      *timeout_func; 
    7371        vcl_func_f      *error_func; 
    7472};