Merge pull request #150 from mochi/active-sockets-149

fix active_socket accounting #149