tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <>
Subject Re: InputStream.available() on ServletInputStream
Date Wed, 02 Aug 2000 05:16:32 GMT
ServletInputStream doesn't have directly a socket underneath, the server
is abstracted and implements doRead() methods.

It is possible to implement available() - either by abstracting it and
requiring the connector to implement the method or ( when the read will be
buffered ) by returning
what is left in the buffer. If you have time to do any of those it would be
great, but so far there are many urgent things to do and little time :-(.


David Raila wrote:

>         Shouldn't ServletInputStream, which is implemented as a socket
> underneath, support the available()
> InputStream method?  I am doing binary data transfer on bunches of
> connections and I want to check the input without blocking, and hopefully
> without using another thread for each connection.....
> Ideas?
> Thanks,
> dkr

View raw message