accept call returns error with the code 1122. Not able to connect more than 1 clients .
Solved! Go to Solution.
Hi Preethi,
The errors means that you have no longer sockets available for accepting the incoming connection. Form rtcs.h file:
#define RTCS_ERROR_BASE (0x1000)
#define RTCSERR_OUT_OF_SOCKETS (RTCS_ERROR_BASE|0x122)
Try to increase the number of sockets the system is allowed to have; for instance, in the web_hvac example we have this:
_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;
I hope this helps you.
Regards,
Garabo
Hi Preethi,
The errors means that you have no longer sockets available for accepting the incoming connection. Form rtcs.h file:
#define RTCS_ERROR_BASE (0x1000)
#define RTCSERR_OUT_OF_SOCKETS (RTCS_ERROR_BASE|0x122)
Try to increase the number of sockets the system is allowed to have; for instance, in the web_hvac example we have this:
_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;
I hope this helps you.
Regards,
Garabo
Thank you very much Garabo, setting of the RTCS variables helped to accept multiple connections. I set the "grow" variables to 4 so that it accepts 4 simultaneous connections.
Thanks once again
Thanks and regards
Preethi Sreenath
Great! good luck!
Regards,
Garabo
is there a screenshot for this issue?
It accepts the first client. When trying to connect second client, accept returns with the error 0x1122 which is out of sockets. Do we have to change anything in the RTCS lib