ATDOR-RIH
ATDOR-RIH
@tony-josi-aws Yes, I can help with testing.
I tried it with **#define ipconfigTCP_HANG_PROTECTION ( 0 )**. It is different but there is still an access to freed memory. D:FreeRTOS_Sockets.c;1;173709;FreeRTOS_socket 0x702b5a60 D:FreeRTOS_TCP_IP.c;1;173722;vSocketCloseNextTime set xSocketToClose 0x0 0x702b5a60 D:FreeRTOS_Sockets.c;1;173722;vSocketClose 0x702b5a60...
@tony-josi-aws I did what you suggested but instead of a random ID I used the system time of when the socket was created. Therefore I added **ulCreationTime** to _xSOCKET_. `struct...
Hi @shubnil and @htibosch attached you will find the following files: - changes.patch: Patch file with the changes I made based on V4.0.0. (relative path: source) - changes_suggestion_htibosch.patch: Patch file...
Here are the extended logs: [logs_suggestion_htibosch_extended.txt](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/files/14754132/logs_suggestion_htibosch_extended.txt) At timestamp 642815 the socket (created at timestamp 639023) is assigned as peer socket of the parent. Is it possible to set the peer...
I think vSocketCloseNextTime() is called because of a RST, but I am not sure. Changes: - Added logs at every call to vTCPStateChange with eCLOSED or eCLOSE_WAIT. - Added pxParentSocket...
Hi @htibosch, logs.zip contains three different logs. - additional_logs: Here I just activated the logs you suggested in the previous comment. I also removed some of the logs I added....
Hi @htibosch, sorry for the delay. There was no fault but freed memory is still being accessed. But it seems to happen a lot less. Here are the logs of...
This is from log1.txt. It is similar for the other log files. Here **0x703c7018** is set to be closed the next time in FreeRTOS_TCP_IP.c vTCPStateChange(FreeRTOS_Socket_t * pxSocket, enum eTCP_STATE eTCPState)....
Hi @htibosch, yes with this change it is working. [log.txt](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/files/15041398/log.txt) server->pxPeerSocket doesn't get cleared because _client->pxPeerSocket_ is NULL at some point when _vSocketCloseNextTime_ is called. Log: vSocketCloseNextTime xParent In this...