Now disconnects properly without instantly quitting

Fix compilation on MSVC 2010

Happy new year 2016

Merged with default protocol5

(0) -100 -30 -10 -4 +4 +10 +30 tip

mercurial