Must call zkclient.close after every connect attempt
Zookeeper client opens a socketpair and sends a single byte message.
There is no receive on this socket until it is connected successfully.
If it never connects, we will eventually run out of socket buffer space.
For this reason, we should call close() to close these sockets after
each connection attempt.
Reviewed: https:/ /review. opencontrail. org/34433 github. com/Juniper/ contrail- controller/ commit/ c05167b4f6d5bde adefb95f6d42270 a7f6d4a2e2
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: master
commit c05167b4f6d5bde adefb95f6d42270 a7f6d4a2e2
Author: Sachin Bansal <email address hidden>
Date: Wed Aug 9 18:07:17 2017 -0700
Must call zkclient.close after every connect attempt
Zookeeper client opens a socketpair and sends a single byte message.
There is no receive on this socket until it is connected successfully.
If it never connects, we will eventually run out of socket buffer space.
For this reason, we should call close() to close these sockets after
each connection attempt.
Change-Id: Iefdc8481d07bf2 43d70fb8f7e2279 2f4c65a6cbf
Closes-Bug: 1691541