You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/12/07 16:16:24 UTC

DO NOT REPLY [Bug 41124] New: - tcnative problem when streaming files large PDF files (ClientAbortException)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124

           Summary: tcnative problem when streaming files large PDF files
                    (ClientAbortException)
           Product: Tomcat 5
           Version: 5.5.20
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: corporate_gadfly@hotmail.com


>From haroon.rafique@utoronto.ca Tue Dec  5 16:44:03 2006
Date: Tue, 5 Dec 2006 16:39:27 -0500 (EST)
From: Haroon Rafique <ha...@utoronto.ca>
Reply-To: Tomcat Developers List <de...@tomcat.apache.org>
To: dev@tomcat.apache.org
Subject: mod_jk problem when streaming files larger than ~400k (causes
ClientAbortException)

Hi Devs,

I sent this to the user list without any responses. I am looking for some
insight from the dev list. You can also see the nabble archive of the
user-list posting at
http://www.nabble.com/mod_jk-problem-when-streaming-files-larger-than-%7E400
k-%28causes-ClientAbortException%29-t2756411.html

If I don't get any responses, then I can submit a bugzilla bug with a
"testcase" war file and its source (maven driven) so that the devs can play
around with it.

Cheers,
--
Haroon Rafique
<ha...@utoronto.ca>


---------- Forwarded message ----------
Date: Mon, 4 Dec 2006 15:01:19 -0500 (EST)
From: Haroon Rafique <ha...@utoronto.ca>
To: users@tomcat.apache.org
Subject: mod_jk problem when streaming files larger than ~400k (causes
    ClientAbortException)

Hi,

I am using mod_jk 1.2.19 on Linux with JDK 1.5.0_08, tomcat 5.5.20. Our
application is struts-based and in one of our actions we stream a PDF to the
client. The pseudo-code for outputting the response back to the client is as
follows (assuming baos contains a ByteArrayOutputStream):

             OutputStream out = response.getOutputStream();
             baos.writeTo(out);
             out.flush();
             out.close();

We noticed no problems when the size of baos was less than 400k. Now the
filesize has jumped to a little greater than 400k. With mod_jk in the
picture, intermittently (not all the time), we get ClientAbortException:

     Caused by: ClientAbortException:  java.io.IOException
         at
         org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuf
         fer.java:366)

The end result being that the PDF is truncated and Acrobat considers it
damaged.

Without mod_jk in the picture, everything is fine.

Turning up the mod_jk logging to debug gave me too much info. Turning it
down to info gave me some clues. Basically, there are 3 flavors of the
failures. Maybe they are all the same but it might appear different to a
trained eye, so I'm posting all three.

Flavor 1 error:
===============
[Mon Dec 04 14:28:59 2006] [25445:9920] [info]
     ajp_connection_tcp_get_message::
     jk_ajp_common.c (941): (local) Tomcat has forced a connection close for
     socket 22
[Mon Dec 04 14:28:59 2006] [25445:9920] [error]
     ajp_get_reply::jk_ajp_common.c (1562): (local) Tomcat is down or
     network
     problems. Part of the response has already been sent to the client
[Mon Dec 04 14:28:59 2006] [25445:9920] [info]
     ajp_service::jk_ajp_common.c (18 28): (local) receiving from tomcat
     failed,
     recoverable operation attempt=0
[Mon Dec 04 14:28:59 2006] [25445:9920] [info]
     ajp_service::jk_ajp_common.c (1867): (local) sending request to tomcat
     failed,
     recoverable operation attempt=1
[Mon Dec 04 14:28:59 2006] [25445:9920] [info]
     ajp_process_callback::jk_ajp_common.c (1410): Writing to client aborted
     or
     client
     network problems
[Mon Dec 04 14:28:59 2006] [25445:9920] [info]
     ajp_service::jk_ajp_common.c (1795): (local) request failed, because of
     client
     write error without recovery in send loop attempt=1
[Mon Dec 04 14:28:59 2006] [25445:9920] [info]
     jk_handler::mod_jk.c (2056): Aborting connection for worker=local

Flavor 2 error:
===============
[Mon Dec 04 14:30:30 2006] [25448:9920] [info]
     ajp_send_request::jk_ajp_common.c (1170): (local) socket 22 is not
     connected
     any more (errno=0)
[Mon Dec 04 14:30:30 2006] [25448:9920] [info]
     ajp_send_request::jk_ajp_common.c (1194): (local) error sending
     request.
     Will
     try another pooled connection
[Mon Dec 04 14:30:30 2006] [25448:9920] [info]
     ajp_send_request::jk_ajp_common.c (1218): (local) all endpoints are
     disconnected
     or dead
[Mon Dec 04 14:30:30 2006] [25448:9920] [info]
     ajp_service::jk_ajp_common.c (1867): (local) sending request to tomcat
     failed,
     recoverable operation attempt=1
[Mon Dec 04 14:30:32 2006] [25448:9920] [info]
     ajp_connection_tcp_get_message::jk_ajp_common.c (941): (local) Tomcat
     has
     forced a connection close for socket 22
[Mon Dec 04 14:30:32 2006] [25448:9920] [error]
     ajp_get_reply::jk_ajp_common.c (1562): (local) Tomcat is down or
     network
     problems. Part of the response has already been sent to the client
[Mon Dec 04 14:30:32 2006] [25448:9920] [info]
     ajp_service::jk_ajp_common.c (1828): (local) receiving from tomcat
     failed,
     recoverable operation attempt=1
[Mon Dec 04 14:30:32 2006] [25448:9920] [info]
     ajp_service::jk_ajp_common.c (1867): (local) sending request to tomcat
     failed,
     recoverable operation attempt=2
[Mon Dec 04 14:30:32 2006] [25448:9920] [error]
     ajp_service::jk_ajp_common.c (1879): (local) Connecting to tomcat
     failed.
     Tomcat is probably not started or is listening on the wrong port
[Mon Dec 04 14:30:32 2006] [25448:9920] [info]
     jk_handler::mod_jk.c (2063): Service error=0 for worker=local

Flavor 3 error:
===============
[Mon Dec 04 14:32:31 2006] [25444:9920] [info]
     ajp_send_request::jk_ajp_common.c (1170): (local) socket 22 is not
     connected any more (errno=0)
[Mon Dec 04 14:32:31 2006] [25444:9920] [info]
     ajp_send_request::jk_ajp_common.c (1194): (local) error sending
     request.  Will try another pooled connection
[Mon Dec 04 14:32:31 2006] [25444:9920] [info]
     ajp_send_request::jk_ajp_common.c (1218): (local) all endpoints are
     disconnected or dead
[Mon Dec 04 14:32:31 2006] [25444:9920] [info]
     ajp_service::jk_ajp_common.c (1867): (local) sending request to tomcat
     failed,  recoverable operation attempt=1


Does anyone have any experience with streaming large files using mod_jk? If
I don't get any responses I will try the dev list.

Here's my mod_jk.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkShmFile logs/mod_jk.shm
JkMount /jkstatus/ status
JkMount /sws/* local

Here's my workers.properties:

worker.list=local,status
worker.local.type=ajp13
worker.local.port=8009
worker.local.host=localhost
worker.status.type=status
worker.status.port=8009
worker.status.host=localhost

Anyone see any glaring mistakes or oddities? As I mentioned earlier, the
same setup worked fine. The only trigger that I can think of is the slight
increase in file size.

Any help appreciated.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From remm@apache.org  2006-12-10 17:27 -------
Oops, it was not supposed to be calling readbbt in the default configuration. I
forgot to port a patch from the HTTP connector.

It's still a serious bug though, so it's good to fix it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From corporate_gadfly@hotmail.com  2006-12-09 14:45 -------
(In reply to comment #8)
> I can't reproduce this problem for the follwoing three setups. I used your
> modjk.war with:
> 

Hi Rainer,

Thanks for replying.

> [..snip..]
> 
> But: I didn't use acrobat. I simply used curl to retrieve the result, to make
> sure, that it's not a combined problem with the client. Also the connection
> between apache and tomcat was a fast one.
> 
> apr was compiled with enabled thread support in all cases.
> 
> Could you please check, if the problem can be reproduced using a simple client
> like curl?

That's the thing. I tried with both curl and wget and cannot get it to fail. If
I try with either IE or Firefox it starts failing (usually) for file4.pdf and
file10.pdf. Sometimes even file1.pdf fails. Even if you try to say "save"
instead of "open", the file size ends up truncated. Can you try your test again
with browsers?

> 
> How long does the download take (add %D to your LogFormat in apache)?
> 

For a few failed requests it was (I believe in microseconds):

3448705
3594590
857019

> 
> What are the exact mod_jk and the connector settings?
> 

I believe I mentioned the mod_jk settings in comment 0. Here they are again:

Here's my mod_jk.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkShmFile logs/mod_jk.shm
JkMount /jkstatus/ status
JkMount /sws/* local
JkMount /modjk/* local

(I forgot to type in the /modjk/* line last time).

Here's my workers.properties:

worker.list=local,status
worker.local.type=ajp13
worker.local.port=8009
worker.local.host=localhost
worker.status.type=status
worker.status.port=8009
worker.status.host=localhost

For the connector setting (from comment 3) is:

    <Connector port="8009"
               connectionTimeout="20000"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

The only thing I have done from the default setup is to add the
connectionTimeout value. The rest is plain vanilla.

My apr was configured using:
    ./configure
My tcnative was configured using:
    ./configure --with-apr=/usr/local/apr
My apache was configured using:
    ./configure --prefix=/www --enable-ssl --enable-proxy --enable-mods-shared=all
My modjk was configured using:
    ./configure --with-apxs=/www/bin/apxs --enable-jni --with-java-platform=2

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From mturk@apache.org  2006-12-10 09:34 -------
Yes, I'll tag the 1.1.8 tomorrow, so it can be included in consequtive Tomcat
releases.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124


rainer.jung@kippdata.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
          Component|Native:JK                   |Unknown




------- Additional Comments From rainer.jung@kippdata.de  2008-01-01 16:41 -------
Removing Native:JK component, because this issue belongs to tcnative, which
seems to not have a component value.

Also moving from resolved to closed.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From hgomez@apache.org  2006-12-08 13:40 -------
I tried tcnative 1.1.7 against the recent APR 1.2.8 and it didn't works either ;(

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From hgomez@apache.org  2006-12-07 07:23 -------
Same problem here with configuration :

Suse Linux SLES 9 
Apache 2.0.49 + Suse fixes
mod_jk 1.2.19 and 1.2.20-dev
Tomcat 6.0.2 
Tomcat Native 1.1.7
APR 1.2.7

Disabling APR use resolv the problem

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From corporate_gadfly@hotmail.com  2006-12-10 06:22 -------
(In reply to comment #10)
> Can you guys try the latest trunk from the native.
> (or just copy the network.c over the one from 1.1.7)
> 

Yes, I can confirm that this is fixed. Are there any plans for rolling 1.1.8?
For my production setup, should I just copy over network.c and go from there?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From corporate_gadfly@hotmail.com  2006-12-07 07:29 -------
(In reply to comment #2)
> Same problem here with configuration :
> 
> Suse Linux SLES 9 
> Apache 2.0.49 + Suse fixes
> mod_jk 1.2.19 and 1.2.20-dev
> Tomcat 6.0.2 
> Tomcat Native 1.1.7
> APR 1.2.7
> 
> Disabling APR use resolv the problem


For me, I have the following line in my server.xml:

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" 
               connectionTimeout="20000"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

taking out connectionTimeout="20000" fixed it for me. I can't remember why i put
a timeout there in the first place, but what's the downside of taking it out?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From hgomez@apache.org  2006-12-07 08:04 -------
Tried your webapp on WinXP, Apache 2.0.58, Tomcat 6.0.4, mod_jk 1.2.19 and
tcnative 1.1.7 and it works.

It's really something related to Linux/APR/tcnative ;(

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From corporate_gadfly@hotmail.com  2006-12-07 07:19 -------
My environment is as follows:

tcnative 1.1.7
mod_jk 1.2.19
tomcat 5.5.20
jdk 1.5.0_08
Gentoo Linux (2.6 kernel)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From corporate_gadfly@hotmail.com  2006-12-08 12:14 -------
(In reply to comment #3)
> 
> [..snip..]
> 
> taking out connectionTimeout="20000" fixed it for me. I can't remember why i put
> a timeout there in the first place, but what's the downside of taking it out?
> 

Spoke too soon. I don't think that had anything to do with it. The only fix is
to not specify -Djava.library.path (which is where it looks for the native library).


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124


mturk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From mturk@apache.org  2006-12-10 00:55 -------
Can you guys try the latest trunk from the native.
(or just copy the network.c over the one from 1.1.7)

http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/network.c?view=co

The problem was that timeout was not restored in readbbt so the next send was
using the 100ms timeout.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From corporate_gadfly@hotmail.com  2006-12-07 07:33 -------
Testcase .war file is at:
http://haroon.sis.utoronto.ca/bugzilla41124/modjk.war

Maven 2 project file is at (so that you can tinker with the source):
http://haroon.sis.utoronto.ca/bugzilla41124/modjk.zip

BTW, I tried reproducing this on Windows but couldn't (possibly because I was
only using mod_jk.so and no tcnative dll)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 41124] - tcnative problem when streaming files large PDF files (ClientAbortException)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41124





------- Additional Comments From rainer.jung@kippdata.de  2006-12-09 10:35 -------
I can't reproduce this problem for the follwoing three setups. I used your
modjk.war with:

TC 5.5.17, apr lib 1.1.3 and apr 1.2.7. Connector setting default:
<Connector port="8009" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
JVM 1.5.0_06
Apache 2.0.59/mod_jk 1.2.19
both on the same machine running SLES 9 SP2 x86_64

TC 5.5.20, apr lib 1.1.8-dev and apr 1.2.8-dev. Connector setting default:
<Connector port="8009" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
JVM 1.5.0_07 on Solaris 10, Apache 2.0.59/mod_jk 1.2.19 on SLES 9 SP2 x86_64

TC 5.5.20, apr lib 1.1.8-dev and apr 1.2.8-dev. Connector setting default:
<Connector port="8009" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
JVM 1.5.0_05 on SLES 9 SP2 i586, Apache 2.0.59/mod_jk 1.2.19 on SLES 9 SP2 x86_64

mod_jk settings for the worker default apart from type=ajp13, host and port

In all cases I could retrive the five different PDF files and the results had
the correct checksum.

But: I didn't use acrobat. I simply used curl to retrieve the result, to make
sure, that it's not a combined problem with the client. Also the connection
between apache and tomcat was a fast one.

apr was compiled with enabled thread support in all cases.

Could you please check, if the problem can be reproduced using a simple client
like curl? How long does the download take (add %D to your LogFormat in apache)?
What are the exact mod_jk and the connector settings?



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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