HttpSrv on I.MX RT1050 EVK, websocket no disconnect cb

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

HttpSrv on I.MX RT1050 EVK, websocket no disconnect cb

1,076 次查看
koenvda
Contributor I

Hi,

I'm having a issue with the demo application "lwip_httpsrv_freertos" for the I.MX RT1050 EVK.

The application runs perfect but if I disconnect my Ethernet cable I don't get a disconnect callback for the websocket echo connection. This means the created session keeps running and is using session space for nothing. This could block new sessions. 

Any solutions to this issue? 

I'm using the last SDK v2.5.1 

Have a nice day,

Koen

标签 (1)
0 项奖励
回复
1 回复

912 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Koen:

There is a ''keep allive" feature for a TCP socket connection . If one connection is silent for tcp_keepalive_time seconds, send a keep alive packet to the peer several times. If no response has been received at this point, send a RST and terminate the connection.

Regards

Daniel

0 项奖励
回复