Message ID | 168ae6c24bf1cfc978f769292705229af82818e8.1469174334.git.amit.shah@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/scripts/qmp/qmp.py b/scripts/qmp/qmp.py index 2d0d926..62d3651 100644 --- a/scripts/qmp/qmp.py +++ b/scripts/qmp/qmp.py @@ -43,6 +43,7 @@ class QEMUMonitorProtocol: self._debug = debug self.__sock = self.__get_sock() if server: + self.__sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self.__sock.bind(self.__address) self.__sock.listen(1)