accept call returns error with the code 1122. Not able to connect more than 1 clients .

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

accept call returns error with the code 1122. Not able to connect more than 1 clients .

Jump to solution
988 Views
userforfirsttim
Contributor I

accept call returns error with the code 1122. Not able to connect more than 1 clients .

Labels (1)
0 Kudos
1 Solution
808 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
5 Replies
809 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

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

0 Kudos
808 Views
userforfirsttim
Contributor I

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

0 Kudos
808 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Great! good luck!

Regards,

Garabo

0 Kudos
808 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

is there a screenshot for this issue?

0 Kudos
808 Views
userforfirsttim
Contributor I

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

0 Kudos