Bug#861872: Tomcat fails to serve png images

Support support at ev.uk
Fri May 5 15:10:57 UTC 2017


>What Connector protocol do you use? 

The default of protocol="HTTP/1.1". The APR libraries are available and the startup logs say Starting ProtocolHandler ["http-apr-8080"].
Interestingly if I change the config to explicitly set protocol="org.apache.coyote.http11.Http11Protocol" or  protocol="org.apache.coyote.http11.Http11NioProtocol" or protocol="org.apache.coyote.http11.Http11AprProtocol" the bug doesn’t appear.

May 05, 2017 3:51:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
May 05, 2017 3:51:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8082"]
May 05, 2017 3:51:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8083"]
May 05, 2017 3:51:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8084"]
May 05, 2017 3:51:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in
^C
#  wget http://localhost:8080/path/to/image.png
--2017-05-05 15:51:53--  http://localhost:8080/path/to/image.png
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 249343 (243K) [image/png]
Saving to: `image.png.1'

91% [==>              ] 229,376     --.-K/s  eta 1s      ^C
#  wget http://localhost:8084/path/to/image.png
--2017-05-05 15:52:10--  http://localhost:8084/path/to/image.png
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8084... connected.
HTTP request sent, awaiting response... 200 OK
Length: 249343 (243K) [image/png]
Saving to: `image.png.2'

100%[=======>] 249,343     --.-K/s   in 0.001s

2017-05-05 15:52:10 (164 MB/s) - `image.png.2' saved [249343/249343]

#  wget http://localhost:8083/path/to/image.png
--2017-05-05 15:52:18--  http://localhost:8083/path/to/image.png
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8083... connected.
HTTP request sent, awaiting response... 200 OK
Length: 249343 (243K) [image/png]
Saving to: `image.png.3'

100%[=======>] 249,343     --.-K/s   in 0.005s

2017-05-05 15:52:18 (46.7 MB/s) - `image.png.3' saved [249343/249343]

#  wget http://localhost:8082/path/to/image.png
--2017-05-05 15:52:26--  http://localhost:8082/path/to/image.png
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8082... connected.
HTTP request sent, awaiting response... 200 OK
Length: 249343 (243K) [image/png]
Saving to: `image.png.4'

100%[=======>] 249,343     --.-K/s   in 0.001s

2017-05-05 15:52:26 (214 MB/s) - `image.png.4' saved [249343/249343]




-- 


This e mail and any attachments are confidential. If you are not the intended recipient, please notify us immediately by replying to the sender by e mail and delete it from your system. 

E mail messages sent via the internet may not be secure and may be susceptible to data corruption, interception and unauthorised amendment, over which we have no control.  The recipient is responsible for ensuring that the transmission, opening or use of this message and any attachments will not adversely affect its systems or data. We do not accept liability for any errors arising from transmission or for any loss or damage suffered as a result of this email and/or its attachments being communicated to anyone other than the intended recipient.  

eValue Limited, company number 7382500

Advisa Centa Limited, company number 7528200

Moneybee Limited, company number 7604100

Each company is registered in England and Wales with its registered office at Benyon House, Newbury Business Park, Newbury, Berks., RG14 2PZ. Moneybee Limited is authorised and regulated by the Financial Conduct Authority.



More information about the pkg-java-maintainers mailing list