dlr 02/02/21 13:51:38
Modified: src/java/org/apache/xmlrpc WebServer.java
Log:
Added change from Ashley L Raiteri <[EMAIL PROTECTED]> which
calls "Runners.run to make sure we don't end up trying to call
con.run() on a null Connection. This could happen if a Runner is in
run on wait, and gets the interrupt from G.interrupt(); Instead of
getting from Runners.handle()'s call to notify (which instantiates a
new Con)."
This is the rest of the fix for
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6593>.
Revision Changes Path
1.8 +4 -1 xml-rpc/src/java/org/apache/xmlrpc/WebServer.java
Index: WebServer.java
===================================================================
RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/WebServer.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -u -r1.7 -r1.8
--- WebServer.java 21 Feb 2002 18:00:54 -0000 1.7
+++ WebServer.java 21 Feb 2002 21:51:38 -0000 1.8
@@ -439,9 +439,12 @@
}
}
+ /**
+ * Delegates to <code>con.run()</code>.
+ */
public void run()
{
- while (Thread.currentThread () == thread)
+ while (con != null && Thread.currentThread() == thread)
{
con.run ();
count++;