Change in vdsm[master]: protocol_detection: reuse address so that VDSM doesn't have ...

smizrahi at redhat.com smizrahi at redhat.com
Sun Jun 15 12:53:54 UTC 2014


Saggi Mizrahi has uploaded a new change for review.

Change subject: protocol_detection: reuse address so that VDSM doesn't have to wait after a crash
......................................................................

protocol_detection: reuse address so that VDSM doesn't have to wait after a crash

Change-Id: Ic10149c619ce7441a1b9eb62bc6806ec997c579c
Signed-off-by: Saggi Mizrahi <smizrahi at redhat.com>
---
M vdsm/protocoldetector.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/40/28740/1

diff --git a/vdsm/protocoldetector.py b/vdsm/protocoldetector.py
index a9208e6..098f23b 100644
--- a/vdsm/protocoldetector.py
+++ b/vdsm/protocoldetector.py
@@ -204,6 +204,8 @@
                             % (self._host, str(self._port)))
         server_socket = socket.socket(addr[0][0], addr[0][1], addr[0][2])
         utils.closeOnExec(server_socket.fileno())
+        sockopt = server_socket.getsockopt()
+        server_socket.setsockopt(sockopt | socket.SO_REUSEADDR)
         server_socket.bind(addr[0][4])
         server_socket.listen(5)
 


-- 
To view, visit http://gerrit.ovirt.org/28740
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic10149c619ce7441a1b9eb62bc6806ec997c579c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi at redhat.com>


More information about the vdsm-patches mailing list