Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 85550 invoked from network); 3 Nov 2008 14:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2008 14:13:46 -0000 Received: (qmail 18286 invoked by uid 500); 3 Nov 2008 14:13:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 18257 invoked by uid 500); 3 Nov 2008 14:13:40 -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 18246 invoked by uid 99); 3 Nov 2008 14:13:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 06:13:40 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of burak.oguz@gmail.com designates 209.85.134.186 as permitted sender) Received: from [209.85.134.186] (HELO mu-out-0910.google.com) (209.85.134.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 14:12:21 +0000 Received: by mu-out-0910.google.com with SMTP id w9so2641724mue.4 for ; Mon, 03 Nov 2008 06:12:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=zaMin8iS0ACigzmTDkELzA3NuKLBUA9yIypcfXarMEU=; b=BLqtN6uAwTN1Xt3W5M+F/nZkV8GfItbxwC+JWHbX/YCjoPNY2/7dQl1WSRh2Q2wT6c PAK3OlAbQSdYSKMErBrikHPukkbqhTOlYu30TZiTCeKrX9slKaV18I+1C95oIxTBTDHP NvL5Wz4YhzfpSIIaEVk0pRNdoVhAQIDvL69+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=hq8r0ud1Ce/QzuzmEftVkef3iUfz/D/7bHOgMBQhnx0XokmGDze6wXJZIdQU+wP/ju qjeK5pAylK79V4VI0pRrbGT4QDmJhj1xVNi8GdR6ZfTi0bBPECJ8jNmg2qEXK4NhanNV N+de6/MxrRZjIFwe+4mjWaUSQmYknfcBscXNE= Received: by 10.187.232.14 with SMTP id j14mr32223far.90.1225721572230; Mon, 03 Nov 2008 06:12:52 -0800 (PST) Received: by 10.187.162.3 with HTTP; Mon, 3 Nov 2008 06:12:52 -0800 (PST) Message-ID: <49d1ddd30811030612v6647c1b6w38d345604c048091@mail.gmail.com> Date: Mon, 3 Nov 2008 16:12:52 +0200 From: "Burak Oguz" To: "Tomcat Users List" Subject: Re: TCP RST on rapid data in NIO Connector In-Reply-To: <490F0467.10100@hanik.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_76757_28761530.1225721572248" References: <49d1ddd30811030438r1b13ec86u722efc1aaa5f41b6@mail.gmail.com> <490F0467.10100@hanik.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_76757_28761530.1225721572248 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Filip, Also I need to add something more: 1. After a lot of googling and forum researchs, I saw a few topics about that. I have tried them all. They made it a little bit stable. (especially these ones : http://markmail.org/message/5zs7qejpjy3vxhfy and http://www.nabble.com/Comet-servlet-synchronization-and-flush-problems-td13879322.html ) 2. I think that problem is about Tomcat's handling of raw socket. As far as I know tomcat is not so capable as Apache in handling buffers. I wanted to try comet over Apache but I could not complete it. Mod_jk does not support nio. Can you offer any methods about this? Thanks again.. On Mon, Nov 3, 2008 at 4:02 PM, Filip Hanik - Dev Lists wrote: > Hi Burak, I will take a look at the trace and see if I can find anything > > Filip > > > Burak Oguz wrote: > >> Hi, >> >> I am using Tomcat 6.0.18 with NIO Connector with Comet. And I have crashed >> into a real problem. I want to use Comet to transfer data on high rate >> over >> http but Tomcat gives such an error when data starts to come too rapid. I >> have a multithreaded architecture behind Tomcat to handle connections as >> in >> the example application. Are there anyone who met this problem before? Any >> ideas will greatly appreciated... Thanks in advance... >> >> Exception in thread "MessageSender[]" java.lang.NullPointerException at >> org.apache.coyote.http11.InternalNioOutputBuffer.addToBB( >> InternalNioOutputBuffer.java:607) >> at org.apache.coyote.http11.InternalNioOutputBuffer.commit( >> InternalNioOutputBuffer.java:600) >> at org.apache.coyote.http11.Http11NioProcessor.action( >> Http11NioProcessor.java:1032) >> at org.apache.coyote.Response.action(Response.java:181) >> at org.apache.coyote.http11.InternalNioOutputBuffer.doWrite( >> InternalNioOutputBuffer.java:571) >> at org.apache.coyote.Response.doWrite(Response.java:560) at >> org.apache.catalina.connector.OutputBuffer.realWriteBytes( >> OutputBuffer.java:353) >> at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java :434) >> at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349) >> at org.apache.catalina.connector.OutputBuffer.writeBytes( >> OutputBuffer.java:381) at >> org.apache.catalina.connector.OutputBuffer.write( >> OutputBuffer.java:370) >> at org.apache.catalina.connector.CoyoteOutputStream.write( >> CoyoteOutputStream.java:89) >> at org.apache.catalina.connector.CoyoteOutputStream.write( >> CoyoteOutputStream.java:83) >> at com.cognotec.streaming.SynchronizedOutputStream.write( >> SynchronizedOutputStream.java:25) >> at com.cognotec.streaming.CometRateSender.run(CometRateSender.java :86) >> at java.lang.Thread.run(Thread.java:595) >> >> >> >> -- burak >> >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > ------=_Part_76757_28761530.1225721572248--