Fixed HTTP 411 error if to many commands are send at once.

Adjusted max polupation calculation.