Closed killghost closed 1 year ago
I tested the pipe connection with the above code
Ehi, sorry for the late reply. I was out for a short vacation last week and also managed to get a flu in the meantime. 😅ðŸ˜
As for your question, uvw
doesn't really add anything on top of libuv
. Therefore, your question is better directed to the underlying library repo here.
Client Code Like this
void Run() { while (1) { auto loop = uvw::Loop::getDefault(); auto tcp = loop.resource();
}
I run a client program. Then restart the server repeatedly. After many times, the client will have EPIPE Broken PIPE -4047. Then after I restart the client, I can still connect to the server code I started last time. My main idea is to solve the problem that I need to reconnect after the server is disconnected. Any suggestions here? Is there something wrong with my code?
Thanks