fpagliughi / sockpp

Modern C++ socket library.
BSD 3-Clause "New" or "Revised" License
769 stars 126 forks source link

Fail to get data after second connect via Unix Domain Sockets #83

Closed hbZhao9 closed 1 year ago

hbZhao9 commented 1 year ago

hi, I write an application to talk with a server applicaiton with Unix Domain Sockets. In the client, there are 2 threads, one thread is send data to the server, ther other keeps reading the responses from the server. However, I find if the client connect with the server many times, even the sockpp::unix_connector is not changed, the receiving thread will not be able to get any new data from the server. If so, when the connection was broken between the client and server, the client try to reconnect with the server, there will be not any data which can be received in the receive thread. May I know how to fix this case? Thanks.