Recv function would keep blocking when TCP server shutdown

I use a blocking FSocket in client-side that connected to tcp server, if there’s no message from server, socket thread would block in function FScoket::Recv(), if TCP server shutdown, socket thread is still blocking in this function. but when use blocking socket of BSD Socket API, thread would pass from recv function and return errno when TCP server shutdown, so is it the defect of FSocket?

BSD Socket API

We use the BSD API inside our FSocket implementation. Based upon you seeing different behavior, double check that you have your flags setup the same way in both sets of code

Hi DawnArc,

We have not heard back from you for a few days. Do you still need help with this? I will be marking this post as resolved for internal tracking purposes, but please feel free to add a comment with any additional information you have to re-open the post if you need any more help.