Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 78558 invoked from network); 2 Aug 2000 05:13:21 -0000 Received: from adsl-63-198-47-229.dsl.snfc21.pacbell.net (HELO costin.dnt.ro) (63.198.47.229) by locus.apache.org with SMTP; 2 Aug 2000 05:13:21 -0000 Received: from yahoo.com (simona.dnt.ro [192.168.4.2]) by costin.dnt.ro (8.9.3+Sun/8.9.1) with ESMTP id WAA03836 for ; Tue, 1 Aug 2000 22:14:11 -0700 (PDT) Message-ID: <3987AEAF.637EACCE@yahoo.com> Date: Tue, 01 Aug 2000 22:16:32 -0700 From: Costin Manolache X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Re: InputStream.available() on ServletInputStream References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ServletInputStream doesn't have directly a socket underneath, the server connector 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 :-(. Costin 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