Merge pull request #41 from cowboy129/master

Change heartbeat timeout code
Support "0::" style disconnect packet