Justin pointed out that the .readline() method of the headers bucket would not advance the read pointer forward. This was fixed by factoring out some logic from the read method to consume the current chunk of header data.
Justin pointed out that the .readline() method of the headers bucket would
not advance the read pointer forward. This was fixed by factoring out some
logic from the read method to consume the current chunk of header data.

* buckets/headers_buckets.c:
  (consume_chunk): logic factored out of the read() method to consume the
    current data chunk of the header. it also computes an appropriate
    return status code based on whether further data is available.
  (serf_headers_read): factor out the chunk consumption logic into
    consume_chunk().
  (serf_headers_readline): use the new consume_chunk() function.

SirJson/serf,KyleSanderson/serf,liuzongquan/serf,zhupan/serf,blueszhangsh/serf,yesoce/serf,zhupan/serf,zhengcq315/serf,justinweb/serf,krime/serf,TommyU/serf,soufianeEL/serf,zhupan/serf,blueszhangsh/serf,SirJson/serf,idomon/serf,stoneCC/serf,alex1818/serf,KyleSanderson/serf,yesoce/serf,alex1818/serf,pengdu/serf,zhengcq315/serf,google-code-export/serf,SirJson/serf,krime/serf,wzugang/serf,Manouchehri/serf,alex1818/serf,jandre/serf,idomon/serf,idomon/serf,justinweb/serf,liuzongquan/serf,TommyU/serf,muthusuba/serf,pengdu/serf,Manouchehri/serf,KyleSanderson/serf,pengdu/serf,blueszhangsh/serf,muthusuba/serf,sworda/serf,pengdu/serf,Manouchehri/serf,lazysoez/serf,justinweb/serf,sworda/serf,yesoce/serf,google-code-export/serf,x-clone/serf,zhengcq315/serf,zhupan/serf,Manouchehri/serf,stoneCC/serf,jandre/serf,x-clone/serf,alex1818/serf,stoneCC/serf,muthusuba/serf,wzugang/serf,stoneCC/serf,soufianeEL/serf,jandre/serf,krime/serf,x-clone/serf,sworda/serf,zhengcq315/serf,google-code-export/serf,soufianeEL/serf,idomon/serf,jandre/serf,KyleSanderson/serf,yesoce/serf,wzugang/serf,TommyU/serf,soufianeEL/serf,lazysoez/serf,muthusuba/serf,google-code-export/serf,lazysoez/serf,liuzongquan/serf,liuzongquan/serf,x-clone/serf,SirJson/serf,sworda/serf,krime/serf,lazysoez/serf,TommyU/serf,justinweb/serf,blueszhangsh/serf,wzugang/serf