Added parameter to set the max number of sockets.
Merge pull request #30 from madevgeny/master

Added parameter to set the max number of sockets.