tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jung" <grimho...@mailbolt.com>
Subject RE: Question about a JCP proposition
Date Tue, 23 Dec 2003 18:18:49 GMT
> You must be in a big rush -- I just got the message, I figure others may
> have not even checked their mail yet ;)

I didn't post that "no answer?" message.

> It's too low-level for the spirit of the Servlet Specification,

That's discouraging.

> - It'd be hard for the container to support these listeners in a
> performant manner.

Agreed. It would surely affect the i/o buffer size if set to a small
value.; in the case of Tomcat I believe this is
org.apache.coyote.http11.Constants.DEFAULT_HTTP_HEADER_BUFFER_SIZE (48k).
However, wouldn't prolific JavaDoc ameliorate that issue?

> it much.  What's a realistic use-case?

One use-case is to be able to provide an accurate upload or download
meter; I'm not aware of any way to do this with Servlets....are you?
(Note I said "accurate", not something like an animated gif which is
just a fancy wait cursor).



On Tue, 23 Dec 2003 08:43:36 -0500, "Shapira, Yoav"
<Yoav.Shapira@mpi.com> said:
> 
> Howdy,
> 
> >no answer??
> 
> You must be in a big rush -- I just got the message, I figure others may
> have not even checked their mail yet ;)
> 
> >There is currently no way in the Servlet spec to know the number
> >of bytes that have been read as a ServletRequest is being processed.
> >By the time Servlet.service() or Filter.doFilter() are called,
> >the *entire* InputStream has been read from the socket.
> >
> >But what if one is trying to implement certain behavior after every
> >n bytes have been consumed? There is presently no way to do this
> >without writing a custom Servlet Container (or extending Coyote).
> 
> I'm not a big fan of the request, for two reasons:
> - It's too low-level for the spirit of the Servlet Specification,
> - It'd be hard for the container to support these listeners in a
> performant manner.
> 
> The above are just IMHO, off the top of my head, without thinking about
> it much.  What's a realistic use-case?
> 
> As to your other question: I've never seen this request before.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 

-- 
http://www.fastmail.fm - mmm... Fastmail...

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message