AnsweredAssumed Answered

TCPIP error RTCSERR_TCPIP_NO_BUFFS 0x1612

Question asked by Kasper Germann Olsen on Oct 19, 2014
Latest reply on Nov 6, 2014 by Kasper Germann Olsen

I working with a Kinetis MK60DN512VLQ10 and using MQX. I have made a HTTP client there is connecting to the HTTP Server every 60 sec. After about 200 connect/disconnect ~ 3 hours, I am getting the error RTCSERR_TCPIP_NO_BUFFS 0x1612.

 

From the release note of latest MQX, I can see that this is a known problem, but there is no solution. I think this is a BIG problem. Can somebody help or have a solution?

 

This is a part of my code:

 

//Create the stream socket for the TCP connection

 

sock = socket(AF_INET, SOCK_STREAM, 0);

if (sock == RTCS_SOCKET_ERROR)

{
   printf("Error creating socket\n\r");

   return NULL;

}

 

//Set socket properties for binding

localaddr.sin_family      = AF_INET;

localaddr.sin_port        = 0;

localaddr.sin_addr.s_addr = INADDR_ANY;

 

//Binding socket

result = bind(sock, &localaddr, sizeof(localaddr));

if (result != RTCS_OK)

{

   printf("Error binding socket\n\r");

   return NULL;

}

 

//Connect socket

result = connect(sock, &addr, sizeof(addr));

if (result != RTCS_OK)

{

   if (result == RTCSERR_TCPIP_NO_BUFFS)

   {

      //HERE IS MY PROBLEM!!!!

   }                                                   

   return NULL;

}

Outcomes