From dev-return-9263-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Tue Nov 15 14:37:47 2005 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 7132 invoked from network); 15 Nov 2005 14:37:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Nov 2005 14:37:46 -0000 Received: (qmail 35514 invoked by uid 500); 15 Nov 2005 14:37:45 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 35306 invoked by uid 500); 15 Nov 2005 14:37:44 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 35295 invoked by uid 99); 15 Nov 2005 14:37:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 06:37:44 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [128.174.5.97] (HELO expredir6.cites.uiuc.edu) (128.174.5.97) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 06:37:35 -0800 Received: from [192.168.0.2] (vpn82-7e-92-83.near.uiuc.edu [130.126.146.131]) by expredir6.cites.uiuc.edu (8.12.11/8.12.11) with ESMTP id jAFEaesB011072 for ; Tue, 15 Nov 2005 08:36:41 -0600 (CST) Mime-Version: 1.0 (Apple Message framework v734) To: Apache Directory Developers List Message-Id: Content-Type: multipart/alternative; boundary=Apple-Mail-1--860582727 References: From: Amit Kumar Subject: Fwd: [mina] Large Object Serialization No go Date: Tue, 15 Nov 2005 08:37:19 -0600 X-Mailer: Apple Mail (2.734) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-1--860582727 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Oops forgot the src. Amit=EF=BF=BC Begin forwarded message: > From: Amit Kumar > Date: November 14, 2005 11:10:26 PM CST > To: "Apache Directory Developers List" > Subject: Re: [mina] Large Object Serialization No go > Reply-To: "Apache Directory Developers List" =20 > > > > Hi Trustin, > > I am not closing the session at all; Attached is the src code. I =20 > modified the TestSerialization example > http://issues.apache.org/jira/browse/DIRMINA-51 ; Could not think =20 > about a Junit for the client server environment. > > I have increased the size of the byte array. On my system the byte =20 > array size of 1000 was a no go. > > > If you run the Server and client you would notice the message with =20 > 1000 byte does not reach the server. > > Thank you for your quick responses and help. > > > Let me know if this is insufficient. > > Regards, > Amit > > On Nov 14, 2005, at 8:20 PM, Trustin Lee wrote: > >> 2005/11/15, Trustin Lee : >> Hi Amit, >> It should work fine even with 1MB ByteBuffer. It would be great =20 >> if you can attach a JUnit >> TestCase to reproduce this issue. >> >> And please don't forget to make sure that you didn't close the =20 >> session before the message is actually written out completely. =20 >> You can use WriteFuture: >> >> WriteFuture future =3D session.write(bigBuffer); >> future.join(); >> assert future.isWritten(); // It will return true if written =20 >> successfully. >> >> HTH. >> Trustin >> --=20 >> what we call human nature is actually human habit >> -- >> http://gleamynode.net/ > --Apple-Mail-1--860582727 Content-Type: multipart/mixed; boundary=Apple-Mail-2--860582727 --Apple-Mail-2--860582727 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
Oops forgot the = src.=A0

Amit
= --Apple-Mail-2--860582727 Content-Transfer-Encoding: base64 Content-Type: application/x-gzip; x-unix-mode=0644; name="src.tar.gz" Content-Disposition: attachment; filename=src.tar.gz H4sICNVpeUMAA3NyYy50YXIA7Vl7b9s4Eu+/9qcY+Aqsk7qKn0nRNEVdN8X6NpscYu8Vi0VxoCXa ZiOLXoqK6w3y3W+GpORnkk0vyW3vNEUjS+IM5/HjcEaMlb/37JGpinTQatnrftNd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er-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
From: = Amit Kumar <amitku@uiuc.edu>
Date: = November 14, 2005 11:10:26 PM CST
To: "Apache = Directory Developers List" <dev@directory.apache.org><= /FONT>
Subject: Re: [mina] Large Object = Serialization No go
Reply-To: "Apache = Directory Developers List" <dev@directory.apache.org><= /FONT>


Hi Trustin,

I am not closing the = session at all; Attached is the src code. I modified the = TestSerialization example=A0
http://issues.apa= che.org/jira/browse/DIRMINA-51=A0 ; Could not think about a Junit = for the client server environment.=A0

I have = increased the size of the byte array. On my system the byte array size = of 1000 was a no go.


If you run = the Server and client you would notice the message with 1000 byte does = not reach the server.

Thank you for = your quick responses and help.


Let me know = if this is insufficient.

Amit=A0

On = Nov 14, 2005, at 8:20 PM, Trustin Lee wrote:

2005/11/15, Trustin Lee <trustin@gmail.com>: Hi Amit,
It should work fine even with = 1MB ByteBuffer.=A0 It would be great if you can attach a = JUnit
TestCase to reproduce this = issue.

And please don't forget to make = sure that you didn't close the session before the message is actually = written out completely.=A0 You can=A0 use WriteFuture: =

WriteFuture future =3D = session.write(bigBuffer);
future.join();
assert = future.isWritten(); // It will return true if written = successfully.

HTH.
Trustin
--
what we call = human nature is actually human habit
--
http://gleamynode.net/


= --Apple-Mail-2--860582727-- --Apple-Mail-1--860582727--