mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Fix a typo that prevented protocol options upgrades
This commit is contained in:
parent
2c0c85cd2f
commit
096f40bf08
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ handle_call({add_connection, Pool, ConnPid, AccOptsVsn}, From, State=#state{
|
||||||
{NbConns, Pools2} = add_pid(ConnPid, Pool, Pools, ReqsTable),
|
{NbConns, Pools2} = add_pid(ConnPid, Pool, Pools, ReqsTable),
|
||||||
State2 = State#state{req_pools=Pools2},
|
State2 = State#state{req_pools=Pools2},
|
||||||
if AccOptsVsn =/= LisOptsVsn ->
|
if AccOptsVsn =/= LisOptsVsn ->
|
||||||
{reply, {ugprade, ProtoOpts, LisOptsVsn}, State2};
|
{reply, {upgrade, ProtoOpts, LisOptsVsn}, State2};
|
||||||
NbConns > MaxConns ->
|
NbConns > MaxConns ->
|
||||||
Queue2 = queue:in(From, Queue),
|
Queue2 = queue:in(From, Queue),
|
||||||
{noreply, State2#state{queue=Queue2}};
|
{noreply, State2#state{queue=Queue2}};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue