Ignore:
Timestamp:
2012-02-13 12:42:31 (2 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
master, 4.0, experimental-ims
Children:
7ec9794
Parents:
23cffba
git-author:
Poul-Henning Kamp <phk@…> (2012-02-13 12:42:31)
git-committer:
Poul-Henning Kamp <phk@…> (2012-02-13 12:42:31)
Message:

Remove sendfile(2) support, it doesn't seem to actually make any
difference in practice and complicates the code and increases the
size of storage data structures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache/cache.h

    rfc387c rd3f869  
    372372#define STORAGE_MAGIC           0x1a4e51c0 
    373373 
    374 #ifdef SENDFILE_WORKS 
    375         int                     fd; 
    376         off_t                   where; 
    377 #endif 
    378374 
    379375        VTAILQ_ENTRY(storage)   list; 
     
    917913unsigned WRW_Write(struct worker *w, const void *ptr, int len); 
    918914unsigned WRW_WriteH(struct worker *w, const txt *hh, const char *suf); 
    919 #ifdef SENDFILE_WORKS 
    920 void WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len); 
    921 #endif  /* SENDFILE_WORKS */ 
    922915 
    923916/* cache_session.c [SES] */ 
Note: See TracChangeset for help on using the changeset viewer.