Patch for kjas KIOConnection
Koos Vriezen
koos.vriezen at xs4all.nl
Mon Dec 22 12:52:00 GMT 2003
Hi,
Nice bugs on http://www.fxstreet.com/nou/fxtrek/senseframescharts.asp ..
Here one when using 'Use KIO', applet does first a KJASHttpURLConnection.disconnect
and next an InputStream.close, results to debug output:
KJAS: KIO disconnect 57
java.io.IOException: not connected
at org.kde.kjas.server.KIOConnection.checkConnected(KJASURLStreamHandlerFactory.java:141)
at org.kde.kjas.server.KIOConnection$KJASInputStream.close(KJASURLStreamHandlerFactory.java:117)
at com.fxchart.ThreadURL.close(ThreadURL.java)
at com.fxchart.DataServerAgent.loadTickVector(DataServerAgent.java)
at com.fxchart.ChartDataSeries.addOneDay(ChartDataSeries.java)
at com.fxchart.ChartDataSeries.update(ChartDataSeries.java)
at com.fxchart.UpdateManager.run(UpdateManager.java)
Attached patch, don't throw an exception if not connected (which means 'close'
never throws an exception)
-------------- next part --------------
Index: org/kde/kjas/server/KJASURLStreamHandlerFactory.java
===================================================================
RCS file: /home/kde/kdelibs/khtml/java/org/kde/kjas/server/KJASURLStreamHandlerFactory.java,v
retrieving revision 1.17
diff -u -3 -p -r1.17 KJASURLStreamHandlerFactory.java
--- org/kde/kjas/server/KJASURLStreamHandlerFactory.java 13 Nov 2003 19:23:41 -0000 1.17
+++ org/kde/kjas/server/KJASURLStreamHandlerFactory.java 22 Dec 2003 12:48:44 -0000
@@ -71,7 +71,6 @@ class KIOConnection
write(b, 0, b.length);
}
public void close() throws IOException {
- checkConnected();
disconnect();
}
public void flush() throws IOException {
@@ -114,7 +113,6 @@ class KIOConnection
return false;
}
public void close() throws IOException {
- checkConnected();
disconnect();
}
}
More information about the kfm-devel
mailing list