RTCS Out of Memory after sending 500 EMails

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RTCS Out of Memory after sending 500 EMails

跳至解决方案
2,704 次查看
Stefan_75
Contributor II

Hi,

 

i've made an EMail implementation like in the security email demo.

 

To make a test i'm sending every 3 seconds an email. After 500 mails the RTCS Task is out of Memory. At this moment creating a socket is possible, bind() also, but connect() returns error 0x1612 (RTCSERR_TCPIP_NO_BUFFS).

 

RTCSTASK_stacksize is set to 4000. 

 

Anyone any idea?

 

Thanks for any hint.

 

Stefan

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,142 次查看
Stefan_75
Contributor II

Hi,

 

I'm shutting down the socket before receiving all TCP messages at the end. In my case I'm sending a lot of EMails in a very short time. It seems to me, when I'm shutting down the socket, the rest of the incomming messages in the buffer for the expired socket won't be removed from the buffer, or it takes a longer time. But this didn't explain, why the task is out of memory. For my understanding, if the buffer is full, the RTCS should refuse any more messages.

 

Now I'm wating for the TCP [FIN] message and I don't have the problem any more. (Tested for > 3000 EMails). Shutting down don't generate a [RST] message any more.

 

Stefan

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,143 次查看
Stefan_75
Contributor II

Hi,

 

I'm shutting down the socket before receiving all TCP messages at the end. In my case I'm sending a lot of EMails in a very short time. It seems to me, when I'm shutting down the socket, the rest of the incomming messages in the buffer for the expired socket won't be removed from the buffer, or it takes a longer time. But this didn't explain, why the task is out of memory. For my understanding, if the buffer is full, the RTCS should refuse any more messages.

 

Now I'm wating for the TCP [FIN] message and I don't have the problem any more. (Tested for > 3000 EMails). Shutting down don't generate a [RST] message any more.

 

Stefan

0 项奖励
回复
1,142 次查看
ARQuattr
Contributor IV

Stefan Gaertner wrote:

Now I'm wating for the TCP [FIN] message ...

Hi Stefan, could you please show how you are doing this? Thanks

0 项奖励
回复