912698 - ak subscribe:  take the number of sockets in pool into account

When a pool has two sockets and my machine 3, 2 pools should be consumed.
Merge pull request #1633 from iNecas/912698

912698 - ak subscribe:  take the number of sockets in pool into account