Hi Aleksandar,
Are you adding enough sockets for your application? The web_hvac demo application is a good example of how to implement this.
Take a look to the file:
C:\Program Files\Freescale\Freescale MQX 3.8\demo\web_hvac\RTCS.c
It adds the next lines:
_RTCSPCB_init = 4;
_RTCSPCB_grow = 2;
_RTCSPCB_max = 20;
_RTCS_msgpool_init = 4;
_RTCS_msgpool_grow = 2;
_RTCS_msgpool_max = 20;
_RTCS_socket_part_init = 4;
_RTCS_socket_part_grow = 2;
_RTCS_socket_part_max = 20;
These lines will ensure you to have at least 4 sockets available in the system. Remember that your server will already take one, so you will have 3 remain sockets with this configuration settings. Also remember to close those sockets that already finished the client connection in the server side (your board).
I hope this helps you.
Garabo