Revision 6bc1c168

b/tools/ganeti-listrunner
323 323
   ### Read when data is available
324 324
  output = ""
325 325
  while select.select([session], [], []):
326
    data = session.recv(1024)
326
    try:
327
      data = session.recv(1024)
328
    except socket.timeout, err:
329
      data = None
330
      WriteLog("FAILED: socket.timeout %s" % err, logfile)
331
    except socket.error, err:
332
      data = None
333
      WriteLog("FAILED: socket.error %s" % err, logfile)
327 334
    if not data:
328 335
      break
329 336
    output += data

Also available in: Unified diff