Comment 15 for bug 1691541

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/34461
Committed: http://github.com/Juniper/contrail-controller/commit/df3d5ddb9245f4d47bca9bcdba3178061b439c3b
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit df3d5ddb9245f4d47bca9bcdba3178061b439c3b
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: Iefdc8481d07bf243d70fb8f7e22792f4c65a6cbf
Closes-Bug: 1691541