projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d17b6
)
Support settimeout in QEMUMonitorProtocol
author
Ryota Ozaki
<ozaki.ryota@gmail.com>
Fri, 14 Sep 2012 12:44:21 +0000
(21:44 +0900)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Wed, 26 Sep 2012 13:45:02 +0000
(10:45 -0300)
This method is used in the following qemu-ga-client script
to implement non-blocking operations.
Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QMP/qmp.py
patch
|
blob
|
history
diff --git
a/QMP/qmp.py
b/QMP/qmp.py
index
5a573e1
..
33c7d36
100644
(file)
--- a/
QMP/qmp.py
+++ b/
QMP/qmp.py
@@
-162,3
+162,8
@@
class QEMUMonitorProtocol:
def close(self):
self.__sock.close()
self.__sockfile.close()
+
+ timeout = socket.timeout
+
+ def settimeout(self, timeout):
+ self.__sock.settimeout(timeout)