aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-06-10 09:24:06 +0200
committerLoïc Hoguin <[email protected]>2014-06-10 09:24:06 +0200
commit7cd3ecc6b618c14e1da4f5692d0fbb59b3b0b8ec (patch)
tree60fb335d04faafdfdb191116404028b315dea6a3 /src
parentfc7e038fbab8ad1b5b11548f9d009c1b6ccd4be3 (diff)
downloadcowboy-7cd3ecc6b618c14e1da4f5692d0fbb59b3b0b8ec.tar.gz
cowboy-7cd3ecc6b618c14e1da4f5692d0fbb59b3b0b8ec.tar.bz2
cowboy-7cd3ecc6b618c14e1da4f5692d0fbb59b3b0b8ec.zip
Fix specs and a weird value in cowboy_spdy
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_spdy.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_spdy.erl b/src/cowboy_spdy.erl
index ce75419..01ec5cb 100644
--- a/src/cowboy_spdy.erl
+++ b/src/cowboy_spdy.erl
@@ -148,7 +148,7 @@ loop(State=#state{parent=Parent, socket=Socket, transport=Transport,
Child = #child{is_recv={passive, FromSocket, FromPid, _, _}}
= get_child(StreamID, State),
FromPid ! {recv, FromSocket, {error, timeout}},
- loop(replace_child(Child#child{is_recv=passive}, State));
+ loop(replace_child(Child, State));
{reply, {Pid, StreamID}, Status, Headers}
when Pid =:= self() ->
Child = #child{output=nofin} = get_child(StreamID, State),
@@ -489,7 +489,7 @@ sendfile(Socket = {Pid, _}, Filepath) ->
_ = Pid ! {sendfile, Socket, Filepath},
{ok, undefined}.
--spec setopts(inet:socket(), list()) -> ok.
+-spec setopts({pid(), _}, list()) -> ok.
setopts(Socket = {Pid, _}, [{active, once}]) ->
_ = Pid ! {active, Socket, self()},
ok;