Reconnecting Tcp Client

298 views
Skip to first unread message

herron...@googlemail.com

unread,
Aug 4, 2017, 10:02:05 AM8/4/17
to libuv
Hi all,

I love libuv. I started using this in a project of mine over at github.com/redbrain/overflow. I have an issue where i would like to have the tcp handle reconnect on disconnect but i seem to be unable to do this without closing the event loop and recreating the event loop to call connect again.

Maybe i have missed something really stupid but i cant find anything on this with my google foo.

--Phil

Bernardo Ramos

unread,
Aug 12, 2017, 11:48:59 PM8/12/17
to libuv
It works for me.

You can close the socket, create a new one and start a new connection request.
Reply all
Reply to author
Forward
0 new messages