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

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

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

808 Views
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

Labels (1)
0 Kudos
1 Reply

644 Views
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 Kudos