anchor.diff:  		_ ->
   			Child#child{input=IsFin2, in_buffer=Data2}
   	end,
  -	Children2 = lists:keyreplace(StreamID, #child.streamid, Children, Child2),
  -	loop(State#state{children=Children2});
  +	loop(replace_child(Child2, State));
   %% General error, can't recover.
   handle_frame(State, {error, badprotocol}) ->
   	goaway(State, protocol_error),
  
positive.code: 				when Pid =:= self() ->
  			Child = #child{output=nofin} = get_child(StreamID, State),
  			data(State, StreamID, true, <<>>),
  			loop(out_fin_child(Child, State));
  		{sendfile, {Pid, StreamID}, Filepath}
  				when Pid =:= self() ->
  			Child = #child{output=nofin} = get_child(StreamID, State),
  			data_from_file(State, StreamID, Filepath),
  			loop(out_fin_child(Child, State));
  		{'EXIT', Parent, Reason} ->
  			exit(Reason);
  		{'EXIT', Pid, _} ->
  
negative.code: 	Transport:send(Socket, cow_spdy:ping(PingID)),
  	loop(State);
  %% Data received for a stream.
  handle_frame(State, {data, StreamID, IsFin, Data}) ->
  	Child = #child{input=nofin, in_buffer=Buffer, is_recv=IsRecv}
  		= get_child(StreamID, State),
  	Data2 = << Buffer/binary, Data/binary >>,
  