0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Fix a typo that prevented protocol options upgrades

This commit is contained in:
Loïc Hoguin 2012-02-01 19:04:26 +01:00
parent 2c0c85cd2f
commit 096f40bf08

View file

@ -114,7 +114,7 @@ handle_call({add_connection, Pool, ConnPid, AccOptsVsn}, From, State=#state{
{NbConns, Pools2} = add_pid(ConnPid, Pool, Pools, ReqsTable),
State2 = State#state{req_pools=Pools2},
if AccOptsVsn =/= LisOptsVsn ->
{reply, {ugprade, ProtoOpts, LisOptsVsn}, State2};
{reply, {upgrade, ProtoOpts, LisOptsVsn}, State2};
NbConns > MaxConns ->
Queue2 = queue:in(From, Queue),
{noreply, State2#state{queue=Queue2}};