Re: [Resin-interest] Comet implementation details

2009-01-23 Thread Scott Ferguson

On Jan 20, 2009, at 11:38 AM, Caleb Richardson wrote:

 We're considering using Resin's comet implementation in an HTTP idle
 scenario (probably 30 minute wait period), where an HTTP client  
 creates
 a connection and then waits up to 30 minutes for a response.

Hmm.  I think that's true.  I've added a bug report at 
http://bugs.caucho.com/view.php?id=3294 
.

We may need to redesign the comet support for Servlet 3.0 (Resin 4.0),  
so that issue may be part of that design.

-- Scott



 I understand that one of the idle connections takes up a socket on the
 server but not a thread. However, does this mean that the server will
 never receive a close event from the client (since nothing is blocking
 on read)? If this is the case, then any background worker threads
 (spawned by me) responsible for calling CometController#wake will
 continue to work on behalf of that connection until the wait period  
 is up.

 Is my understanding correct?

 Thanks,

 Caleb Richardson



 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Comet implementation details

2009-01-20 Thread Caleb Richardson
We're considering using Resin's comet implementation in an HTTP idle 
scenario (probably 30 minute wait period), where an HTTP client creates 
a connection and then waits up to 30 minutes for a response.

I understand that one of the idle connections takes up a socket on the 
server but not a thread. However, does this mean that the server will 
never receive a close event from the client (since nothing is blocking 
on read)? If this is the case, then any background worker threads 
(spawned by me) responsible for calling CometController#wake will 
continue to work on behalf of that connection until the wait period is up.

Is my understanding correct?

Thanks,

Caleb Richardson



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest