renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
192 stars 82 forks source link

Problem with bsd socket connect function in file "nx_tcp_client_socket_connect.c" #242

Closed swellfox closed 1 year ago

swellfox commented 2 years ago

On the Renesas Engineering Community, a potential bug in the RA FSP has been identified:

https://community.renesas.com/mcu-mpu/ra/f/forum/28748/ra6m4---azure-rtos-bsd-socket---fsp-3-8-0---socket-connect-problem

jritchey-renesas commented 1 year ago

Investigated this and determined that connect was returning the code EINPROGRESS for non-blocking sockets as mentioned in the linked discussion. When looking at the comment header for connect() in nxd_bsd.c, it mentions that connect returns EINPROGRESS to “to distinguish from blocking sockets”. After calling connect, the socket was able to send data correctly. The difference in behavior between FSP and SSP here is likely a result of different versions of NetX Duo.

Closing this since it appears to be expected behavior.