----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi,
I already put the max upload size to 20mb, thats not the problem here :( It
looks like something in jserv or my own code is not completely 8-bits clean,
because some Word documents > 100kb fail to upload, while other large files
(like mp3 files) are uploaded okay. In jserv_compat.c line 166 :
while(1) {
if (bgets(w, MAX_STRING_LEN-1, f) <= 0) {
kill_timeout (r);
log_reason ("Premature end of script headers", r->filename, r);
return SERVER_ERROR;
}
It looks like something went wrong when filling up a buffer, but only
sometimes. Someone know where bgets is defined? I found a ap_bgets but is
that the same in the Apache source code?
Martijn
--
_____________________________________________________________
Martijn van Berkum_________<GX> creative online development
______________________________________mailto:[EMAIL PROTECTED]
__________________________________________http://www.gx.nl/
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Nick Bauman
> Sent: zondag 9 januari 2000 21:02
> To: Java Apache Users
> Subject: Re: Problems while HTTP uploading files
>
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> The com.oreilly.servlet classes have defaults set to
> how large the file to be uploaded is allowed. You may
> override them.
>
> --- Martijn van Berkum <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > We're using jserv for half a year without problems,
> > but one of our customers
> > found out it wasn't possible to upload large files
> > using multipart/formdata
> > (file upload forms). I traced it down to the
> > following errors in
> > mod_jserv.log:
> >
> > [09/01/2000 16:17:08:467] (EMERGENCY) ajp11: cannot
> > scan servlet headers
> > [09/01/2000 16:17:08:467] (ERROR) an error returned
> > handling request via
> > protocol "ajpv11"
> >
> > The http error logfile said:
> > [Sun Jan 9 16:17:08 2000] [error] [client
> > 192.168.1.30] Premature end of
> > script headers:
> > /servlet/nl.gx.research.client.http.EditObject
> >
> > This only happens with some files larger then a few
> > hunderd kb's. Anyone
> > experience or advice on this? Does it have anything
> > to do with the
> > ServletInputStream? We use
> >
> http://www.servlets.com/resources/com.oreilly.servlet/Multipar
tRequest.html
> for parsing the uploaded file..
>
>
> BTW : using Linux Redhat 5.0, apache 1.3.9, Jserv
> 1.0.
>
> Tia,
>
> Martijn
=====
# Nick Bauman
# Technical Programmer
# http://webhelp.com
# real people, real answers, real time
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]