oops, didn't mean to relax the close method
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 11 Jun 2007 12:11:20 +0000 (12:11 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 11 Jun 2007 12:11:20 +0000 (12:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@546117 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/CometEvent.java
java/org/apache/catalina/connector/CometEventImpl.java

index 25c6468..2d180a8 100644 (file)
@@ -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 
index a98f65f..ea279d5 100644 (file)
@@ -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));