Changeset 1532
- Timestamp:
- 12/16/06 14:18:02
- Files:
-
- trunk/cherrypy/test/webtest.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/webtest.py
r1528 r1532 470 470 # Trying 10 times is simply in case of socket errors. 471 471 # Normal case--it should run once. 472 trial = 0 473 while trial < 10: 472 for trial in xrange(10): 474 473 try: 475 474 # Allow http_conn to be a class or an instance … … 513 512 return s, h, b 514 513 except socket.error: 515 trial += 1 516 if trial >= 10: 517 raise 518 else: 519 time.sleep(0.5) 514 time.sleep(0.5) 515 raise 520 516 521 517

