Make max sockets configurable.