anchor.diff:          kill_client(Pid)
       end;
   send_body_part({Pid, Window}, Bin, _Timeout) 
  -        when Window >= 0, is_binary(Bin) ->
  +        when Window > 0, is_binary(Bin), is_pid(Pid) ->
       Pid ! {body_part, self(), Bin},
       receive
           {ack, Pid} ->
  
positive.code: -behaviour(application).
  
  -export([request/4, request/5, request/6]).
  -export([send_body_part/3, send_trailers/3]).
  -export([start/2, stop/1]).
  
  -include("lhttpc_types.hrl").
  
negative.code:             erlang:error(Reason)
      end.
  
  -spec send_body_part({pid(), window_size()}, binary()) -> 
          {pid(), window_size()} | result().
  send_body_part({Pid, Window}, Bin) ->
      send_body_part({Pid, Window}, Bin, infinity).
  
  -spec send_body_part({pid(), window_size()}, binary(), timeout()) -> 
          {pid(), window_size()} | result().
  send_body_part({Pid, 0}, Bin, Timeout) 
          when is_binary(Bin), is_pid(Pid) ->
      receive
          {ack, Pid} ->
              send_body_part({Pid, 1}, Bin, Timeout);
  