• Show log

    Commit

  • Hash : b04cc60f
    Author : Nicholas Marriott
    Date : 2009-11-23T12:55:50

    Backport evbuffer_readln().
    
    This is necessary because it is not actually possible to use
    evbuffer_readline() safely: it will treat "A\r\n" as 'A' EOL if it
    reads it all at once, and as 'A' EOL EOL if there is a delay between
    reading the \r and the \n.
    
    Nicholas Marriott's comments on this patch:
    
       Gilles is too busy so I've had a go at this, please see the diff
       below.  Rather than try to backport directly from 2.0 where the
       evbuffer code is quite different, I've backported the _readln
       function from when it was initially added in buffer.c r550. I can't
       see any relevant bug fixes after this point so the function is
       pretty much just copied in directly from that revision.
    

  • README

  • To build libevent, type
    
    $ ./configure && make
    
         (If you got libevent from the subversion repository, you will
          first need to run the included "autogen.sh" script in order to
          generate the configure script.)
    
    Install as root via
    
    # make install
    
    You can run the regression tests by
    
    $ make verify
    
    Before, reporting any problems, please run the regression tests.
    
    To enable the low-level tracing build the library as:
    
    CFLAGS=-DUSE_DEBUG ./configure [...]
    
    Acknowledgements:
    -----------------
    
    The following people have helped with suggestions, ideas, code or
    fixing bugs:
    
      Alejo
      Weston Andros Adamson
      William Ahern
      Stas Bekman
      Andrew Danforth
      Mike Davis
      Shie Erlich
      Alexander von Gernler
      Artur Grabowski
      Aaron Hopkins
      Claudio Jeker
      Scott Lamb
      Adam Langley
      Philip Lewis
      David Libenzi
      Nick Mathewson
      Andrey Matveev
      Richard Nyberg
      Jon Oberheide
      Phil Oleson
      Dave Pacheco
      Tassilo von Parseval
      Pierre Phaneuf
      Jon Poland
      Bert JW Regeer
      Dug Song
      Taral
    
    If I have forgotten your name, please contact me.