Permalink
Commits on Feb 3, 2010
Commits on Nov 29, 2009
  1. Fix some memory leaks.

    Thanks to Ask Bjørn Hansen for reporting the leaks and to valgrind for
    finding them.
    kr committed Nov 29, 2009
Commits on Nov 28, 2009
  1. Allow writing buried jobs to the binlog.

    Thanks to Erwan A. for the bug report.
    kr committed Nov 28, 2009
  2. Correctly calculate ftruncate size.

    The file might be slightly bigger than binlog_size_limit, but the number
    of bytes written should always be binlog_size_limit - b->free -
    b->reserved. And b->reserved should be zero for a binlog ready to be
    closed. (Also, the offset argument to lseek should have been negated.)
    
    Also test for truncated binlog files.
    kr committed Nov 28, 2009
Commits on Nov 27, 2009
  1. Placate all the compilers. Ugly.

    Thanks to Johan Bergström <bugs@bergstroem.nu> for the idea.
    kr committed Nov 27, 2009
Commits on Nov 25, 2009
  1. 10.6 build fix

    jbergstroem committed with kr Nov 20, 2009
Commits on Nov 17, 2009
  1. Quiet compiler warning about unused return value.

    We don't really care if the ftruncate call fails, it just means
    beanstalkd might report warnings next time it starts up.
    kr committed Nov 17, 2009
  2. Avoid EOF warnings when reading binlogs

    unused free space at the end of a binlog file can cause unexpected EOF warnings
    when restarting beanstalkd. Avoid such warnings by truncating free space
    when closing a binlog file
    gbarr committed Nov 17, 2009
  3. Fix problem with delayed events being delayed for 213 days

    The problem is potential overflow of a unsigned
    
    in net.c line 108 it has
    
       timeval_from_usec(&tv, deadline_at - now);
    
    problem is that between when deadline_at is calculated and when now is fetched we can end up with deadline_at < now and because they are unsigned we end up with a huge timeout
    gbarr committed with abh Nov 17, 2009
Commits on Nov 5, 2009
  1. Update documentation.

    kr committed Nov 5, 2009
  2. unit test changes

    make check for old nc more explicit, nc6 included the word option even though -q is valid
    
    increase timeout so that pause-tube test can run
    
    add explicit quit to each test so that server will close connection at end of test
    and not have to wait for timeout
    gbarr committed Nov 5, 2009
  3. Add tests for pause-tube

    gbarr committed Nov 5, 2009
  4. Add pause-tube command

    A new command pause-tube which results in no new jobs being reserved
    from a tube until the given number of seconds has passed
    gbarr committed Nov 5, 2009
Commits on Oct 25, 2009
Commits on Oct 24, 2009
Commits on Oct 18, 2009
  1. Prevent a potential buffer overflow reading the tube name.

    Phil Ross committed with kr Oct 15, 2009
  2. Merge commit 'gbarr/binlog-read'

    kr committed Oct 18, 2009
  3. Test case for binlog read bug.

    kr committed Oct 16, 2009
Commits on Oct 15, 2009
  1. Only read a job body for new jobs

    The body of a job is only written to the binlog when a job is
    first created. all other times only the job struct is written.
    
    For new jobs the tube namelen will be >0, if this is an existing
    job the tube_namelen will be zero, so do not attemtp to read the
    job body
    gbarr committed Oct 15, 2009
Commits on Oct 14, 2009
Commits on Oct 12, 2009
  1. Fixed contradition re. quit command in protocol doc.

    The diff excluding changes to wordwrapping is:
    
    -There is no command to close the connection -- the client may
    +The client may issue the "quit" command, or
    pda committed Oct 12, 2009
  2. Merge commit 'lericson/master'

    kr committed Oct 12, 2009
  3. Fix build on FreeBSD.

    Thanks to Peter Kieltyka http://github.com/pkieltyka for the fix.
    Closes gh-21.
    kr committed Oct 12, 2009
  4. Add files to the distribution tarball that are referenced in the spec.

    The distribution tarball should now be able to be built directly
    into RPMs with 'rpmbuild -ta beanstalkd-<version>.tar.gz'
    copiousfreetime committed Oct 12, 2009
  5. Force creation of beanstalkd homedir.

    The home directory of the beanstalkd user needs to
    exist so the binlog may be stored there.
    copiousfreetime committed Oct 12, 2009
Commits on Oct 11, 2009
Commits on Oct 7, 2009
  1. use inttypes.h to fix printf warnings on amd64

    goosmurf committed with kr Oct 7, 2009
Commits on Oct 2, 2009