Jean-Baptiste Quenot wrote:
Hello,
Today Sylvain's blog is down, which is causing infinite timeout on
my Cocoon-based portal...
This is why you will find attached a patch to implement timeout on
URLSource. The problem is that HttpURLConnection timeout in the
JDK is only available in JDK 1.5:
http://java.sun.com/j2se/1.5.0/docs/api/java/net/HttpURLConnection.html
How to achieve this cleanly?
I don't know how to do it under jdk 1.4, but for this patch to be accepted,
please:
* Make sure it compiles under jdk 1.4.
* GET RID OF DAMN TABS! :)
PS This last one is a rule in many projects, including Cocoon.
Vadim
+ /**
+ * Accept configuration parameters:
+ * <ul>
+ * <li><tt>connect-timeout</tt> used for
<tt>setConnectTimeout()</tt></li>
+ * <li><tt>read-timeout</tt> used for <tt>setReadTimeout()</tt></li>
+ * </ul>
+ */
+ public void parameterize(Parameters par) throws ParameterException {
+ this.parameters = par;
+ }
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]