1. 30 Jun, 2008 2 commits
    • 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
    • Eric Wong's avatar
      http: split out auth code since it's mostly uninteresting for now · ec1eeeea
      Eric Wong authored
      The auth code also has some ugly usages of string generation
      which I will eventually replace with something nicer...
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@7387 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      ec1eeeea