• Eric Wong's avatar
    http: initial rewrite using ringbuffer + pthreads · 2a5dcba5
    Eric Wong authored
    This institutes the usage of a separate thread to buffer HTTP
    input.  It is basically practice code for using the ringbuffer
    code which I plan on reusing for the OutputBuffer as well as
    further input buffering for disk (networked filesystems over
    WAN, laptops on battery, etc).
    
    Each readFromInputStream() call on an HTTP stream can take
    several seconds to complete, short reads are avoided.
    
    A single-threaded solution for systems supporting large enough
    SO_RCVBUF values should also be possible and will likely be done
    in the future; but this lock-free(except when full/empty)
    ringbuffer is cool :)
    
    git-svn-id: https://svn.musicpd.org/mpd/trunk@7393 09075e82-0dd4-0310-85a5-a0d7c8717e4f
    2a5dcba5
Name
Last commit
Last update
bs Loading commit data...
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
build.mk Loading commit data...
configure.ac Loading commit data...