anchor.diff:  	false.
   
   -spec websocket_payload_loop(#state{}, Req, any(),
  -		opcode(), non_neg_integer(), mask_key(), binary(), rsv())
  +		opcode(), non_neg_integer(), mask_key(), binary(),
  +		non_neg_integer(), rsv())
   	-> {ok, Req, cowboy_middleware:env()}
   	| {suspend, module(), atom(), [any()]}
   	when Req::cowboy_req:req().
   websocket_payload_loop(State=#state{socket=Socket, transport=Transport,
   		messages={OK, Closed, Error}, timeout_ref=TRef},
  -		Req, HandlerState, Opcode, Len, MaskKey, Unmasked, Rsv) ->
  +		Req, HandlerState, Opcode, Len, MaskKey, Unmasked, UnmaskedLen, Rsv) ->
   	Transport:setopts(Socket, [{active, once}]),
   	receive
   		{OK, Socket, Data} ->
   			State2 = handler_loop_timeout(State),
   			websocket_payload(State2, Req, HandlerState,
  -				Opcode, Len, MaskKey, Unmasked, Data, Rsv);
  +				Opcode, Len, MaskKey, Unmasked, UnmaskedLen, Data, Rsv);
   		{Closed, Socket} ->
   			handler_terminate(State, Req, HandlerState, {error, closed});
   		{Error, Socket, Reason} ->
  
positive.code: 		Utf8State ->
  			websocket_payload_loop(State2#state{utf8_state=Utf8State},
  				Req, HandlerState, Opcode, Len - byte_size(Data), MaskKey,
  				<< Unmasked/binary, Unmasked3/binary >>, Rsv)
  	end;
  websocket_payload(State=#state{utf8_state=Incomplete},
  		Req, HandlerState, Opcode, Len, MaskKey, Unmasked, Data, Rsv)
  		when Opcode =:= 1; (Opcode =:= 8) and (Unmasked =/= <<>>) ->
  	<< End:Len/binary, Rest/bits >> = Data,
  	Unmasked2 = websocket_unmask(End,
  		rotate_mask_key(MaskKey, byte_size(Unmasked)), <<>>),
  	{Unmasked3, State2} = websocket_inflate_frame(Unmasked2, Rsv, true, State),
  	case is_utf8(<< Incomplete/binary, Unmasked3/binary >>) of
  		<<>> ->
  
negative.code: 			websocket_close(State, Req, HandlerState, {normal, timeout});
  		{timeout, OlderTRef, ?MODULE} when is_reference(OlderTRef) ->
  			websocket_payload_loop(State, Req, HandlerState,
  				Opcode, Len, MaskKey, Unmasked, UnmaskedLen, Rsv);
  		Message ->
  			handler_call(State, Req, HandlerState,
  				<<>>, websocket_info, Message,
  				fun (State2, Req2, HandlerState2, _) ->
  					websocket_payload_loop(State2, Req2, HandlerState2,
  						Opcode, Len, MaskKey, Unmasked, UnmaskedLen, Rsv)
  				end)
  	end.
  
  