From: fhanik Date: Mon, 11 Jun 2007 12:11:20 +0000 (+0000) Subject: oops, didn't mean to relax the close method X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=af78625fd9ab50d26a07f1f0a33fa09f56ed1faa;p=tomcat7.0 oops, didn't mean to relax the close method git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@546117 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/CometEvent.java b/java/org/apache/catalina/CometEvent.java index 25c64682b..2d180a87a 100644 --- a/java/org/apache/catalina/CometEvent.java +++ b/java/org/apache/catalina/CometEvent.java @@ -141,7 +141,7 @@ public interface CometEvent { * * @see #register(CometOperation) */ - public void close(); + public void close() throws IOException; /** * Sets the timeout for this Comet connection. Please NOTE, that the implementation diff --git a/java/org/apache/catalina/connector/CometEventImpl.java b/java/org/apache/catalina/connector/CometEventImpl.java index a98f65f8f..ea279d54f 100644 --- a/java/org/apache/catalina/connector/CometEventImpl.java +++ b/java/org/apache/catalina/connector/CometEventImpl.java @@ -131,7 +131,7 @@ public class CometEventImpl implements CometEvent { return response.getResponse(); } - public void setTimeout(int timeout) throws IOException, ServletException,UnsupportedOperationException { + public void setTimeout(int timeout) throws ServletException,UnsupportedOperationException { //this check should get removed as soon as connection timeout is implemented everywhere. if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) { request.action(ActionCode.ACTION_COMET_TIMEOUT,new Integer(timeout));