]> granicus.if.org Git - python/commitdiff
Fixing stupid error, and introducing a sleep, to see if the
authorFacundo Batista <facundobatista@gmail.com>
Fri, 25 May 2007 03:47:19 +0000 (03:47 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Fri, 25 May 2007 03:47:19 +0000 (03:47 +0000)
other thread is awakened and finish sending data.

Lib/test/test_urllib.py

index 469a5d25426bf3a8792ab80d5f581554aa63cdab..22628369bea471f8c8d21f36a904fc3045ad78cd 100644 (file)
@@ -556,9 +556,9 @@ def server(evt):
         conn.send("1 Hola mundo\n")
         cantdata = 0
         while cantdata < 13:
-            print "len:", cantdata
             data = conn.recv(13-cantdata)
             cantdata += len(data)
+            time.sleep(.3)
         conn.send("2 No more lines\n")
         conn.close()
     except socket.timeout: