Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache blocking on System.in in cgi java application

0 views
Skip to first unread message

Jason Pell

unread,
Jun 26, 2001, 4:37:19 AM6/26/01
to
Hi,

The following fragment is used to read in system.in data from a file
upload,
but System.in is blocking after the 4046 read byte. On each and every
case.

It does not matter if I change the code, to read in bigger chunks, it
still blocks
around the 4000byte mark.

-------------------------------------------------
int c;
int count=0;
while ( (c=System.in.read()) !=-1)
{
System.out.print((char)c);
count++;
}
-------------------------------------------------

I am running Apache/1.3.19 Server, with Redhat 7.1 on an Intel 166Mhz
pentium
with 128megs ram.

Any help or similar experiences appreciated

Cheers
Jason

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Callista Software Services Pty Ltd
27 Brougham Street, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail Jason...@callista.com.au
http://www.callista.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---------------------------------------------------------------
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---------------------------------------------------------------


Jason Pell

unread,
Jun 26, 2001, 5:06:27 AM6/26/01
to
Disregard, my fault, I was going through a proxy server, and did not
realise it.
The proxy server was cutting me off.

Thanks anyway
Jason

Jeff Robertson

unread,
Jun 26, 2001, 1:28:18 PM6/26/01
to
Jason Pell <Jason...@callista.com.au> wrote in message news:<3B3849BF...@callista.com.au>...

> Hi,
>
> The following fragment is used to read in system.in data from a file
> upload,
> but System.in is blocking after the 4046 read byte. On each and every
> case.

Not that this is the cause of your problem, but just out of curiousity
why are you using CGI instead of servlets ? Is there something I'm
missing about what CGI can do that servlets can't?

I've been doing CGI (in various languages) for 5 years and servlets
for one year, and I can't think of a reason why I would want to do CGI
in Java when servlets exist as an alternative.

0 new messages