0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Always dialyze tests and fix some cowboy_req specs

This commit is contained in:
Loïc Hoguin 2018-10-31 10:50:57 +01:00
parent 07078eb47b
commit a8335c63df
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
11 changed files with 25 additions and 11 deletions

View file

@ -107,6 +107,7 @@ early_error(StreamID, Reason, PartialReq, Resp, Opts) ->
end.
%% @todo It would be good if we could allow this function to return normally.
-spec takeover(_, _, _, _, _, _, _) -> no_return().
takeover(Parent, Ref, Socket, Transport, Opts, Buffer, State=#state{pid=Pid}) ->
Pid ! {Pid, self(), takeover, Parent, Ref, Socket, Transport, Opts, Buffer, State},
exit(normal).