Skip to content

Commit

Permalink
Support settimeout in QEMUMonitorProtocol
Browse files Browse the repository at this point in the history
This method is used in the following qemu-ga-client script
to implement non-blocking operations.

Signed-off-by: Ryota Ozaki <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
  • Loading branch information
ozaki-r authored and Luiz Capitulino committed Sep 26, 2012
1 parent e9d17b6 commit e37b350
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions QMP/qmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,8 @@ def clear_events(self):
def close(self):
self.__sock.close()
self.__sockfile.close()

timeout = socket.timeout

def settimeout(self, timeout):
self.__sock.settimeout(timeout)

0 comments on commit e37b350

Please sign in to comment.