gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] storm/org/nongnu/storm/http/client testSimpleHT...


From: Hermanni Hyytiälä
Subject: [Gzz-commits] storm/org/nongnu/storm/http/client testSimpleHT...
Date: Mon, 28 Apr 2003 09:21:39 -0400

CVSROOT:        /cvsroot/storm
Module name:    storm
Changes by:     Hermanni Hyytiälä <address@hidden>      03/04/28 09:21:39

Modified files:
        org/nongnu/storm/http/client: testSimpleHTTPClient.test 

Log message:
        Make sure thread stops

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/storm/storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test
diff -u storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test:1.5 
storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test:1.6
--- storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test:1.5    Mon Apr 
28 07:05:01 2003
+++ storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test        Mon Apr 
28 09:21:39 2003
@@ -58,7 +58,8 @@
          
          
          # Start HTTP-proxy thread
-        serverthread = java.lang.Thread(HTTPProxy(pool, 5555))
+         proxy = HTTPProxy(pool, 5555)
+        serverthread = java.lang.Thread(proxy, "HTTP_PROXY")
          serverthread.start() 
         print "HTTP proxy thread started..."
         
@@ -80,5 +81,8 @@
          assert resp.status == 200
                   
         httpconn.close  
-        java.lang.Thread(serverthread).interrupt()
-        print "HTTP proxy thread stopped..."    
+          
+        if  serverthread.isAlive() == 1:
+                print serverthread.isAlive()
+                serverthread.interrupt()
+                print "HTTP proxy thread stopped..."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]