Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 68880 invoked from network); 21 Dec 2010 15:10:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Dec 2010 15:10:21 -0000 Received: (qmail 42672 invoked by uid 500); 21 Dec 2010 15:10:17 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 42498 invoked by uid 500); 21 Dec 2010 15:10:17 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 42489 invoked by uid 99); 21 Dec 2010 15:10:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 15:10:16 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of spring@gmx.eu designates 213.165.64.22 as permitted sender) Received: from [213.165.64.22] (HELO mail.gmx.net) (213.165.64.22) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 21 Dec 2010 15:10:08 +0000 Received: (qmail invoked by alias); 21 Dec 2010 15:09:48 -0000 Received: from e178079042.adsl.alicedsl.de (EHLO msrvcn04) [85.178.79.42] by mail.gmx.net (mp064) with SMTP; 21 Dec 2010 16:09:48 +0100 X-Authenticated: #2635966 X-Provags-ID: V01U2FsdGVkX1+Km3QAS0GKx6m5fqu4CyBYnfviN2n36qzfp7sQDq dZnSk7DAiF/1QH From: To: "'Tomcat Users List'" References: <4D10A746.4080903@apache.org> Subject: RE: APR and async request Date: Tue, 21 Dec 2010 16:09:46 +0100 Message-ID: <1920816BC3874F4F9DAD21353CE844FE@msrvcn04> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcuhEITQORMGiI2NSIKPBeVdsa4cJQAD5GXQ In-Reply-To: <4D10A746.4080903@apache.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4721 X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org I mean the new servlet 3.0 capabilities: startAsync() and the resulting AsyncContext: request.startAsync() AsyncContext#getResponse() sample: HttpServletResponse res = (HttpServletResponse)ac.getResponse(); res.setStatus(200); res.setHeader("X-Foo", "bar"); res.setContentType("application/xml"); PrintWriter w = res.getWriter(); w.println(""); w.flush(); ac.complete(); It seem that the response object is some what damaged, the code does not fail, but the client only receives status 200, no body and no custom headers send via Response#setHeader("X-...", ...). Thank you! > -----Original Message----- > From: Mark Thomas [mailto:markt@apache.org] > Sent: Dienstag, 21. Dezember 2010 14:10 > To: Tomcat Users List > Subject: Re: APR and async request > > On 21/12/2010 13:07, spring@gmx.eu wrote: > > OK; I've got it... > > > > when I change the Connector from HTTP/1.1 to > > org.apache.coyote.http11.Http11NioProtocol is works. > > Sounds a bit logical (Non-Blocking and async) but can someone please > > explain? > > You'll need to explain what you mean by async requests before > anyone can > answer that. > > Mark > > > > > Thank you > > > > > >> when I disable APR by removing the tcnative-1.dll or by > removing the APR > >> listener from server.xml async requests do not work anymore. I get > >> immediately after the request an empty response body with > status 200. > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org