Fix for huge memory leak with hung sockets with window size=0