setup default operation
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 29 May 2007 22:23:36 +0000 (22:23 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 29 May 2007 22:23:36 +0000 (22:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542678 13f79535-47bb-0310-9956-ffa450edef68

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

index 7004e3c..257181d 100644 (file)
@@ -41,6 +41,11 @@ public class CometEventImpl implements CometEvent {
     public CometEventImpl(Request request, Response response) {
         this.request = request;
         this.response = response;
+        try {
+            this.register(CometOperation.OP_READ);
+        }catch ( IOException x ) {
+            throw new IllegalStateException(x.getMessage(),x);
+        }
     }