ssl: Fix logical error in flow control
ssl: Fix logical error in flow control

This commit refactors and comments the flow_ctrl function
as well as fixing the logical error reported in ERL-1319.
Probably will not have a noticeable affect but will make
connections more well behaved under some circumstances.

rlipscombe/otp,lrascao/otp,isvilen/otp,potatosalad/otp,g-andrade/otp,uabboli/otp,lrascao/otp,rlipscombe/otp,dgud/otp,getong/otp,bjorng/otp,emacsmirror/erlang,emacsmirror/erlang,uabboli/otp,emacsmirror/erlang,vladdu/otp,potatosalad/otp,getong/otp,bjorng/otp,vinoski/otp,dumbbell/otp,mikpe/otp,dumbbell/otp,vladdu/otp,dgud/otp,rlipscombe/otp,erlang/otp,lrascao/otp,ferd/otp,jj1bdx/otp,dgud/otp,bjorng/otp,rlipscombe/otp,uabboli/otp,g-andrade/otp,vladdu/otp,dgud/otp,ferd/otp,isvilen/otp,erlang/otp,dgud/otp,rlipscombe/otp,uabboli/otp,uabboli/otp,jj1bdx/otp,potatosalad/otp,dumbbell/otp,dumbbell/otp,vinoski/otp,potatosalad/otp,lrascao/otp,jj1bdx/otp,vinoski/otp,potatosalad/otp,isvilen/otp,vladdu/otp,erlang/otp,bjorng/otp,uabboli/otp,emacsmirror/erlang,g-andrade/otp,erlang/otp,rlipscombe/otp,vladdu/otp,getong/otp,rlipscombe/otp,isvilen/otp,vladdu/otp,isvilen/otp,dgud/otp,ferd/otp,erlang/otp,vinoski/otp,potatosalad/otp,isvilen/otp,g-andrade/otp,dumbbell/otp,lrascao/otp,g-andrade/otp,jj1bdx/otp,vinoski/otp,dgud/otp,vladdu/otp,bjorng/otp,g-andrade/otp,mikpe/otp,dumbbell/otp,erlang/otp,g-andrade/otp,dgud/otp,ferd/otp,isvilen/otp,uabboli/otp,rlipscombe/otp,dgud/otp,lrascao/otp,isvilen/otp,rlipscombe/otp,dumbbell/otp,isvilen/otp,jj1bdx/otp,ferd/otp,vinoski/otp,getong/otp,getong/otp,getong/otp,dumbbell/otp,jj1bdx/otp,emacsmirror/erlang,vinoski/otp,bjorng/otp,lrascao/otp,emacsmirror/erlang,bjorng/otp,bjorng/otp,bjorng/otp,mikpe/otp,ferd/otp,g-andrade/otp,mikpe/otp,erlang/otp,ferd/otp,mikpe/otp,ferd/otp,potatosalad/otp,jj1bdx/otp,getong/otp,emacsmirror/erlang,erlang/otp,getong/otp,dumbbell/otp,g-andrade/otp,mikpe/otp,vinoski/otp,uabboli/otp,isvilen/otp,jj1bdx/otp,jj1bdx/otp,mikpe/otp,ferd/otp,mikpe/otp,jj1bdx/otp,emacsmirror/erlang,emacsmirror/erlang,dumbbell/otp,dgud/otp,vladdu/otp,vinoski/otp,potatosalad/otp,lrascao/otp,erlang/otp,g-andrade/otp,mikpe/otp,mikpe/otp,getong/otp,getong/otp,lrascao/otp,potatosalad/otp,vinoski/otp,bjorng/otp,potatosalad/otp,uabboli/otp,erlang/otp,emacsmirror/erlang,rlipscombe/otp,vladdu/otp