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?
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
answered May 26 '16 at 03:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here