Optimizations to fill packets better for the edsm server.
Optimizations to fill packets better for the edsm server.

Problems:
   - the SETTINGS frame was the first packet we'd send, uncorked.
     This was wasting the first packet of our cwnd.
   - uncork was overaggressive.  We now only uncork when there are
     no more packets in our queue.
   - rework the packet sizing to fully fill packets better.

Question - should I remove the MSG_MORE code now?  It seems to be an
alternative way to do corking, but it just doesn't work with the SSL layer.

BUG=none
TEST=n/a

Review URL: http://codereview.chromium.org/6327022

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@72844 0039d316-1c4b-4281-b951-d872f2087c98

junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,jaruba/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,mogoweb/chromium-crosswalk,ltilve/chromium,Fireblend/chromium-crosswalk,Jonekee/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,ltilve/chromium,ChromiumWebApps/chromium,Chilledheart/chromium,robclark/chromium,ChromiumWebApps/chromium,Just-D/chromium-1,keishi/chromium,patrickm/chromium.src,timopulkkinen/BubbleFish,ltilve/chromium,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,jaruba/chromium.src,ltilve/chromium,littlstar/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,Jonekee/chromium.src,mogoweb/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,rogerwang/chromium,markYoungH/chromium.src,ondra-novak/chromium.src,Chilledheart/chromium,chuan9/chromium-crosswalk,rogerwang/chromium,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,littlstar/chromium.src,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,robclark/chromium,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,jaruba/chromium.src,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,hgl888/chromium-crosswalk,anirudhSK/chromium,dednal/chromium.src,ChromiumWebApps/chromium,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,patrickm/chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,Jonekee/chromium.src,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,ltilve/chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,littlstar/chromium.src,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,anirudhSK/chromium,jaruba/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,rogerwang/chromium,timopulkkinen/BubbleFish,rogerwang/chromium,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,robclark/chromium,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,M4sse/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,markYoungH/chromium.src,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,chuan9/chromium-crosswalk,dednal/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,Chilledheart/chromium,rogerwang/chromium,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,markYoungH/chromium.src,keishi/chromium,ChromiumWebApps/chromium,M4sse/chromium.src,markYoungH/chromium.src,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,zcbenz/cefode-chromium,Just-D/chromium-1,Jonekee/chromium.src,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,hgl888/chromium-crosswalk,hujiajie/pa-chromium,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,robclark/chromium,axinging/chromium-crosswalk,dednal/chromium.src,zcbenz/cefode-chromium,axinging/chromium-crosswalk,Jonekee/chromium.src,fujunwei/chromium-crosswalk,robclark/chromium,rogerwang/chromium,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,anirudhSK/chromium,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,littlstar/chromium.src,dushu1203/chromium.src,rogerwang/chromium,fujunwei/chromium-crosswalk,M4sse/chromium.src,ondra-novak/chromium.src,zcbenz/cefode-chromium,keishi/chromium,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,jaruba/chromium.src,timopulkkinen/BubbleFish,keishi/chromium,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,rogerwang/chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,M4sse/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,Jonekee/chromium.src,Fireblend/chromium-crosswalk,dednal/chromium.src,robclark/chromium,anirudhSK/chromium,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,jaruba/chromium.src,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,jaruba/chromium.src,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,Just-D/chromium-1,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dednal/chromium.src,rogerwang/chromium,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,dednal/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,hujiajie/pa-chromium,zcbenz/cefode-chromium,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,ondra-novak/chromium.src,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,zcbenz/cefode-chromium,robclark/chromium,keishi/chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,ltilve/chromium,keishi/chromium,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,ondra-novak/chromium.src,hujiajie/pa-chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,ltilve/chromium,Chilledheart/chromium,nacl-webkit/chrome_deps,patrickm/chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,keishi/chromium,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,ltilve/chromium,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,keishi/chromium,Just-D/chromium-1,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,keishi/chromium,ltilve/chromium,ChromiumWebApps/chromium,ondra-novak/chromium.src,rogerwang/chromium,anirudhSK/chromium,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,Chilledheart/chromium,keishi/chromium,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,robclark/chromium