Anonymous | Login | Signup for a new account | 12-17-2024 10:38 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005777 | [Resin] | major | always | 07-16-14 04:17 | 09-12-14 13:56 | ||||
Reporter | wxiaoguang | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.39 | ||||||
Summary | 0005777: resin + gzip hangs with Content-Length header in response | ||||||||
Description |
package com.springapp.mvc; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @Controller @RequestMapping("/") public class TestController { /* in resin.xml: <filter filter-name="gzip" filter-class="com.caucho.filters.GzipFilter"/> <filter-mapping url-pattern="*.api" filter-name="gzip"/> resin + gzip hangs forever caused by "Content-Length" in response header */ @RequestMapping(value = "test.api", method = RequestMethod.GET) public void test(HttpServletResponse response) throws IOException { String s = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; //if this line is commented out, resin won't hang response.setIntHeader("Content-Length", s.length()); response.getOutputStream().write(s.getBytes()); System.out.println("response done"); } } |
||||||||
Additional Information | |||||||||
Attached Files | resin-gzip-hang-test.zip [^] (3,475 bytes) 07-16-14 04:17 | ||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |