Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on May 5, 2012
  1. @vinoski
Commits on Apr 1, 2012
  1. @tuncer @vinoski

    Use file:sendfile/5 if available

    tuncer authored vinoski committed
    Due to a bug in file:sendfile/5 in R15B, the yaws configure script enables
    the use of file:sendfile/5 only for versions R15B01 or greater.
Commits on Dec 15, 2011
  1. @vinoski

    change return type of sendfile set_error_buffer() (Tuncer Ayaz)

    vinoski authored
    At the suggestion of Tuncer Ayaz, change the return type of
    set_error_buffer() in the yaws sendfile driver from size_t to
    ErlDrvSizeT. This makes the code make more sense since the result of
    set_error_buffer() is sometimes used as the return value for driver
    callback functions.
Commits on Dec 10, 2011
  1. @tuncer

    Add missing driver entries

    tuncer authored
Commits on Dec 9, 2011
  1. @tuncer
Commits on Oct 31, 2011
  1. @vinoski

    whitespace cleanup

    vinoski authored
    Remove all trailing whitespace from all text files. Some bot sent
    Klacke and me a pull request saying it had done this for us, but I
    reviewed the diffs and it was affecting lines that shouldn't have been
    affected, so perl and I did it ourselves instead.
Commits on May 7, 2011
  1. @tuncer

    epam: removed unused variable

    tuncer authored
  2. @tuncer @vinoski

    add rebar support (Tuncer Ayaz and Steve Vinoski)

    tuncer authored vinoski committed
    Add support for building yaws with rebar. The original configure and
    make support is kept intact.
    
    If you build with rebar you get a local install. The rebar approach
    does not support a regular install, which defaults into /usr/local. If
    you want a regular install, use configure and make.
    
    Create a new top-level contrib directory and move unused src files
    there. Also move src/benchmarks and src/contrib contents there as
    well. Remove the obsolete src/patches directory. This is all to keep
    rebar from compiling this unused code (since by default it compiles
    everything under the src dir).
    
    Move a number of build rules out of Makefiles into separate scripts so
    they can be used by both rebar and make.
    
    Modify yaws version specifier and handling to be amenable to rebar.
    
    Clean up trailing whitespace in a number of scripts and Makefiles.
    
    Use the following environment variables to customize the rebar build
    defaults:
    
    DEFAULT_CHARSET: used in mime type table (default: "")
    ERLBINDIR: e.g. /usr/local/bin
    ETCDIR: etc directory (default: ./etc)
    VARDIR: var directory (default: ./var)
Commits on Mar 2, 2011
  1. @vinoski

    do not use ERL_DRV_USE when de-selecting sendfile socket

    vinoski authored
    The sendfile driver does not own the HTTP sockets to which it sends
    data, and so it never closes them. The previous commit erroneously set
    ERL_DRV_USE on the driver_select(..., 0) call, which causes erts to
    justifiably complain about the driver not implementing the stop_select
    call. Remove ERL_DRV_USE for this case. Thanks to Tuncer Ayaz.
  2. @vinoski

    fix EINTR handling in sendfile driver

    vinoski authored
    Tuncer Ayaz pointed out that OS X sendfile will return bytes sent for
    the case when EINTR occurs. Make sendfile driver handle this case by
    treating EINTR the same as EAGAIN for all supported platforms.
    
    Also update driver to use ERL_DRV_* flags in driver_select calls if
    they're defined, rather than the old DO_* flags. This is considered
    correct practice since R13B.
Commits on Dec 8, 2010
  1. @tuncer

    Fix 'implicit declaration of function' warnings

    tuncer authored
    c_src/yaws_sendfile_drv.c: In function 'set_error_buffer':
    c_src/yaws_sendfile_drv.c:142:9: warning: implicit declaration of
                                              function 'tolower'
    c_src/yaws_sendfile_drv.c: In function
                                  'yaws_sendfile_drv_ready_output':
    c_src/yaws_sendfile_drv.c:259:9: warning: implicit declaration of
                                              function 'close'
Commits on Jun 4, 2010
  1. @simonoff
Commits on Feb 18, 2010
  1. dialyzer work

    authored
Commits on Dec 5, 2009
  1. @vinoski
Commits on Sep 26, 2009
  1. @vinoski
Commits on Apr 23, 2009
  1. @vinoski

    minor cleanup modifications

    vinoski authored
Commits on Apr 14, 2009
  1. @vinoski
Commits on Apr 5, 2009
  1. @vinoski

    modified the way data is passed between yaws_sendfile.erl and the sen…

    vinoski authored
    …dfile driver
    
    to fix endian problems I found on PPC systems
Commits on Jan 26, 2009
  1. @vinoski
Commits on Jan 25, 2009
  1. @vinoski

    restore necessary void** casts

    vinoski authored
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1367 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  2. @vinoski
Commits on Jan 22, 2009
Commits on Jan 18, 2009
  1. @vinoski

    fix cast warnings on 64-bit systems

    vinoski authored
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1350 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  2. @vinoski
Commits on Jan 14, 2009
  1. @vinoski
Commits on Dec 22, 2008
  1. @vinoski
Commits on Dec 20, 2008
  1. added configure support for sendfile

    authored
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1305 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Dec 18, 2008
  1. @vinoski

    Remove monitoring of input file, as this causes significant slowdown …

    vinoski authored
    …on both Linux and OS X.
    
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1301 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Nov 24, 2008
  1. @vinoski
Commits on Nov 15, 2008
  1. @vinoski

    Handle EAGAIN by calling sendfile from only within ready_output.

    vinoski authored
    The sendfile call on Linux seems broken, returning only partial
    results due to the non-blocking socket but not returning -1 as
    you'd expect. There also seems to be differences on different
    Linux versions as to whether its sets the number of bytes sent
    into its offset argument or not. The code tries to compensate for
    these issues.
    
    
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1291 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Nov 10, 2008
  1. @vinoski

    Add sendfile linked-in driver for use on Linux and OS X. It is not ye…

    vinoski authored
    …t tied into
    
    Yaws itself in any way. It also does not yet handle EAGAIN.
    
    
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1288 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Feb 14, 2008
  1. untabified all of yaws

    authored
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1217 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Aug 16, 2007
  1. Build and make fixes

    authored
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1124 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Dec 11, 2006
Commits on Jun 16, 2006
  1. *** empty log message ***

    authored
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@981 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Something went wrong with that request. Please try again.