Michael Ossareh wrote:
On Mon, Jun 8, 2009 at 3:10 PM, Emmanuel Lecharnyelecha...@apache.org wrote:
Michael Ossareh wrote:
On Mon, Jun 8, 2009 at 2:13 PM, David Rosenstrauchdar...@darose.net
wrote:
Michael Ossareh wrote:
In the case above the code in
gonzalo diethelm wrote:
Although not strictly necessary, I would have the expectation that,
since MINA is based on NIO, it should be possible to build a single
executable that listens on a port and connects to itself on that port,
all from a single thread. Is this possible at all?
No. As soon
gonzalo diethelm wrote:
Although not strictly necessary, I would have the expectation that,
since MINA is based on NIO, it should be possible to build a single
executable that listens on a port and connects to itself on that
port,
all from a single thread. Is this possible at all?
gonzalo diethelm wrote:
Implementing everything with a single thread means that we use one
selector to handle the accept and the session. possible, but then, why
using MINA ? You can do that with a simple SocketServer, a selector and
a few glue around it.
The idea with MINA was to create a
Christopher Popp wrote:
I think you might be confusing the thread model a bit...with MINA you don't
need a thread per client. There is one thread listening which handles
accepting connections. There are then a configurable pool of I/O handling
threads (defaulting to # of cores +1) which
gonzalo diethelm wrote:
From: gonzalo diethelm [mailto:gdieth...@dcv.cl]
Sent: Thursday 11 Jun 2009 10:59
To: users@mina.apache.org
Subject: Server and Client at the same time
Hello again. I would like to gather opinions on how to implement a
proof
of concept for my requirements.
Yasdnil Zbib wrote:
Hi
I am just starting to get to grips with MINA 2.0, and have a question about the
use of IOBuffer, which I hope someone can help me with.
Apologies up front for the newbie status of this:
When a ProtocolDecoder recieves an IOBuffer to decode I have read that my
incoming
lasith haputhanthiri wrote:
Exception caught: org.apache.mina.filter.codec.ProtocolDecoderException:
java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: 33 1C
33 1C 30 1C 30 1C 30 1C 30 1C 41 53 30 30 30 30 30 33 32 36 39 01 42 46 47
42 01 22 30 01 48 30 01 49 41 44 53 4D 01 4A
boB Gage wrote:
Emmanuel, you're right I should be annoyed at the previous
designer that tied our non-volunteer project with strictly defined
deadlines to a volunteer-developed library tool set; not at the
volunteers who never actually committed to support anything.
well, it's always
Christopher Popp wrote:
Yep, after taking the second glance at it, it looks like the message sent event
should occur every time the write occurs later on in the method.
I just took a glance quick, and it looks like they tag each of their releases,
so you should be able to checkout the
boB Gage wrote:
Have entered JIRA tickets with details of the recent issues I've
brought to the list.
DIRMINA-719 --Serial Filter Chain Broken For Outbound Data
DIRMINA-720 -- Hardware Flow Control Disables Serial Port on Windows
Platform
Saw that. I have added a comment on 719
I have
David Rosenstrauch wrote:
David Rosenstrauch wrote:
Mark Webb wrote:
This was discussed in length on this mailing list back when the
article was posted. I vaguely remember the discussion, other than it
happened.
Checking the archives should give you what you are looking for.
--Mark
Ah,
Chowdhury, Shubhankar [WHQKA] wrote:
o o the whole format got garbled - let me try in plain text
--
--
This might be a very dumb post but please help.
I have already used MINA for
David Rosenstrauch wrote:
I do something similar, using a binary protocol where messages vary in
length based on data-length values in the message. And yes, I use a
custom subclass of CumulativeProtocolDecoder for this.
The code's a bit ugly, but it works. Essentially your decoder needs
to
are missing the fact that you can decode what you have already
received.
Thanks,
Shubhankar
847-700-4452
-Original Message-
From: Emmanuel Lecharny [mailto:elecha...@gmail.com] On Behalf Of Emmanuel
Lecharny
Sent: Friday, June 19, 2009 5:46 PM
To: users@mina.apache.org
Subject: Re: Handling
David Rosenstrauch wrote:
I would add a forth case :
* more than one complete message in a single buffer.
In this case, you have to loop until you have decoded all the
messages, calling the next filter for each decoded message.
This is what we do in Apache Directory to decode LDAP requests.
David Rosenstrauch wrote:
David Rosenstrauch wrote:
Emmanuel Lecharny wrote:
I would add a forth case :
* more than one complete message in a single buffer.
In this case, you have to loop until you have decoded all the
messages, calling the next filter for each decoded message
Yongxing Wang wrote:
If not implicitly covered in the case of more than one complete message in a single buffer, we also need to deal with the case where a sing buffer contains several complete messages AND an incomplete one.
if fact, all the cases are listed here :
* a buffer with an
David Rosenstrauch wrote:
DR
Hmmm ... yeah, that's a problem. I'll have to fix this.
Thanks for the heads up.
Just keep me informed if this is not anymore a problem...
May be we should document this kind of decoding on the web site too...
It can e helpfull !
DR
--
--
cordialement,
Yongxing Wang wrote:
I wrote a simple unit test case where one single buffer contains two messages,
using the DummySession. After calling decode, it delivers me two messages:
IoBuffer in = IoBuffer.wrap(bytesData); = contains two encoded msgs
decoder.decode(session, in,
Maarten Bosteels wrote:
It's in the javadocs: doDecode() is invoked repeatedly until it returns
false
So there is no need to have a loop in your doDecode implementation for
decoding multiple messages.
Brian Parkinson wrote:
Emmanuel writes:
---x8 snip
2. I've noticed one recurring error in my log files - in my HttpRequestDecoder (extends
MessageDecoderAdapter), I am throwing an exception trying to parse up the headers - the code ends
up getting partial line headers (for example, the
On Fri, Jun 26, 2009 at 10:51 AM, Anand Boraanand.b...@aricent.com wrote:
Hi all,
I'm facing a weird issue. I'm trying to find out the current length of the
ByteBuffer which is filled with data.
I tried to use the position() function but the problem is it increments the
position also.
Linz RB wrote:
Just looking for some confirmation on my thoughts (and understanding) of
writing ProtocolCodecs
Before I start - congratulations to the MINA team - MINA 2,0 is great and
the separation of repsonsibilities is a joy to work with.
I am primarily concerned with the construction of
:
filterChainBuilder.addLast(threadPool, *new* ExecutorFilter
http://mina.apache.org/report/trunk/xref/org/apache/mina/filter/executor/ExecutorFilter.html(Executors.newCachedThreadPool()));
// Here, we use an ubound thread pool.
Hope it helps.
On Tue, Jun 30, 2009 at 2:58 PM, Emmanuel Lecharny
Hi,
On Wed, Jul 8, 2009 at 9:18 PM, Sitao Yangsitao.y...@gmail.com wrote:
Hi,
I'm interested in trying out AsyncWeb Client in my project. I have several
questions:
1. where can I find either latest and stable source code or binary package
for this project?
The source is only available
You can't use two codec filters in the chain, due to the way the data
are passed from one filter to another one (we use IoBuffer for that).
This will be modified in 3.0, but don't expect this version to be out soon.
In the mean time, the only option is to wrap the textline codec into
the JSON
Sorry, Ashish, after having refreshed my memory by looking at the
code, just discard what I have said.
MessageReceived() get an Object as a parameter, not a IoBuffer. So as
soon as you *know* what type the message type is, it should be plain
ok.
Sorry for the confusion.
--
Regards,
On Thu, Jul 16, 2009 at 11:24 AM, Emmanuel Lecharnyelecha...@apache.org wrote:
You can't use two codec filters in the chain, due to the way the data
are passed from one filter to another one (we use IoBuffer for that).
This is plain BS, now that I had time to check on the code.
Adam Brown wrote:
While adding SSL support to our project using SslFilter, I ran into
the problem where SslFilter does not handle writes of FileRegions.
SslFilter.filterWrite() casts the message in the WriteRequest to an
IoBuffer. However, this doesn't work for FileRegions (leading to a
刘尚�� wrote:
哈哈.原来有chinese 在上面
can you please full english when posting to this mailing list?
Thanks !
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
The Travel Assistance Committee is taking in applications for those wanting
to attend ApacheCon US 2009 (Oakland) which takes place between the 2nd and
6th November 2009.
The Travel Assistance Committee is looking for people who would like to be
able to attend ApacheCon US 2009 who may need some
Bruno,
I want to give you some result we get on Apache Directory Server, which
is based on MINA.
Currenly on my laptop, a 2Ghz centrino, I'm able to process around 4000
search requests per second. That mean a request is handled in *less than
a 1/4 millisecond*. And trust me on that, the
阳建军 wrote:
Hi, I wirte a Long connection client, it's sample code as:
public void startClient() throws Exception {
NioSocketConnector socketConnector = new NioSocketConnector();
socketConnector.setHandler(...);
Adam Brown wrote:
i'm currently using a FileRegionWriteFilter 'before' an SslFilter to
breakup FileRegion objects into chunks that SslFilter can handle
(since SslFilter doesn't handle them directly). however, this filter
chain also has IoBuffers written to the same IoSession.
the problem i'm
Daryl Ayres wrote:
boB,
Based on what you've said, it sounds like I would need to have a
ThrowawayDecoder as the last decoder in my ProtocolCodecFactory to consume or clear
those packets in the protocol I'm not currently handling. I'll create one and give it a
go.
This would be the
Survivant 00 wrote:
Anybody can give me a hint ?
It's something we have in the pipe for MINA 3.0, but it's not available
in MINA 2.0 atm.
I have 3 cases that I want to replace by MINA.
#1 - Send a UDP message using MulticastSocket and close the socket.
#2 - Send a UDP message using
boB Gage wrote:
I'm running into an issue decoding both packets from a device that
embeds commands inside it's responses.
Everything is flagged with start/stop bytes and can be parsed without
problems.
The problem is, at the point in the code that I'm parsing this, I'm in
the guts of a
Christian Migowski wrote:
On Mon, Aug 24, 2009 at 8:23 AM, Emmanuel Lecharnyelecha...@apache.org wrote:
Christian Migowski wrote:
(and
more actively developed).
FUD.
you are easily scared, hm? ;)
Look, I'm very happy that Trustin has found a place he can have fun in.
Rafael Marins wrote:
Hi folks,
Hi !
I've found a deadlock at StateMachine#handle(StateMachine.java:129)
and
StateMachineProxyBuilder$MethodInvocationHandler.invoke(StateMachineProxyBuilder.java:253),
when using two layered state machines in pipeline. It get into
deadlock because both
Daniel John Debrunner wrote:
I'm seeing hangs when I use an IoEventQueueThrottle as below. I read
the comments in the javadoc about requiring an executor in the filter
chain. I get no hangs if I do not add writeThrottle into the chain
(my app is currently throttling by waiting for every
Daniel John Debrunner wrote:
Emmanuel Lecharny wrote:
Daniel John Debrunner wrote:
I'm seeing hangs when I use an IoEventQueueThrottle as below. I read
the comments in the javadoc about requiring an executor in the
filter chain. I get no hangs if I do not add writeThrottle into
the chain
rzo wrote:
Hello,
Looking further into this issue, I found out that the server has 2
network cards with teaming - load balancing - turned on.
Could this lead be the cause ? Is this a windows, java or windows issue ?
MINA version ? JVM version ? OS ? Code ?
Thanks ...
--
--
cordialement,
Aleksandar Lazic wrote:
The easiest way to do that is to have a class in your application that
extends the IoHandler interface : it will handle the messageReceived
event.
I have a used the IoHandlerAdapter isn't it enough?
It's ok, as this Adapter implements IoHandler.
I use the IoHandler, I
Adam Brown wrote:
Unless I'm missing something, despite what the Javadoc for 2.0-M6
says, AbstractIoSession.getCreationTime() returns the creation time in
milliseconds, not nanoseconds. Is the plan to switch from millis to
nanos, or is the Javadoc wrong?
-adam
The javadoc was incorrect.
Adam Brown wrote:
Unless I'm missing something, despite what the Javadoc for 2.0-M6
says, AbstractIoSession.getCreationTime() returns the creation time in
milliseconds, not nanoseconds. Is the plan to switch from millis to
nanos, or is the Javadoc wrong?
-adam
Th eJavadoc is wrong. It's
rzo wrote:
oops sorry, and sorry for the delayed answer.
I am using mina-2.0.0-M4
Switch to 2.0.0-M6.
The message you get is probably due to the fact that the client has
closed the socket before it has been accepted. Not exactly an error.
--
--
cordialement, regards,
Emmanuel Lécharny
Chenna Venkatasubbaiah-KRG637 wrote:
Hello All - Recently while browsing I came to know about MINA. I am a
Java/J2EE developer.
I am working in wireless broad band and networking company and I have
limited knowledge on networking domain.
In our company we manufacture Wireles switches,
Hi,
you should really see MINA as a framework on top of NIA, ie what yu do
with a single socket, you have to do the same with a MINA connection.
The big difference is that a MINA session is associated with some
context, but otherwise, it behaves the same.
The message you got just indicates that
In any case, I would gather all the elements inorder to send only one
message instead of many. It's more efficient.
On Mon, Sep 14, 2009 at 7:28 AM, Christopher Popp
christopherp...@yahoo.com wrote:
2)Does Mina keeps the order of the messages sending when replies are
dispatched? In another
Ashish wrote:
Folks,
MINA User guide Chapter 2 - Basics is ready for review. Here is the
link (http://cwiki.apache.org/confluence/display/MINA/Chapter+2+-+Basics)
P.S. - I missed announcing chapter 1 updates in User ML
I updated it in a little hurry, as I wanted to finish it before weekend.
Sebastian Wagner wrote:
I read in the docs that: 1 session == 1 Thread
1 *active* session ... ! You may have thousands of inactive sessions.
So opening several Session in the Client should have an impact on the
Performance.
No, not unless you have many active sessions.
--
--
Adi wrote:
Hi all,
Openfire ( a open source xmpp server) uses mina. They seem to be using
version 1.1.8 of mina.
In the code i did see this, comment.
/ /TODO Temporary workaround (placing SSLFilter before ExecutorFilter) to
avoid deadlock. Waiting for
// MINA devs feedback
Sica, David (David) wrote:
I have a process that is sending an ASCII string that contains a Null
Character in the middle of the string. It seems that my MINA server is
only receiving the string before the Null Character and then ignoring
everything after. Does this seem consistent with how
Hi,
Darryl Pentz wrote:
I'm trying to get my head around the way that MINA 1.1.7. configuration is
meant to work.
First, I think that you should switch to MINA 2.0.0-M6. The Thread model
is much easier. Also consider that this version is mainained, and
performances are better. That being
Ronen wrote:
Thanks.
By disabling naggle algorithm you mean setting the TCP_NODELAY?
yep.
On Wed, Sep 30, 2009 at 12:05 PM, Emmanuel Lecharny elecha...@apache.orgwrote:
Ronen wrote:
Hi,
I'm trying to figure out what is the guideline for setting the values of
sendBufferSize
A naive approach would be to do something like :
while (true) {
session.write ( your data to the client );
Thread.sleep( 1000L );
}
it does the trick *IF* you don't have a lot of clients (and you'll have
to add an Executor filter in the chain, otherwise you wo'nt be able to
deal with more
Mark Wallsgrove wrote:
Hey guys,
I need to create a client which can read data of an HTTPS connection
.. I have seen examples for SSL servers, but not clients. Could
someone provide me with a really basic example? Surely it isn't too
hard?
Have a look at the chat client.
I looked at the Apache cons slides and it seems that MINA exactly matches
my
requirements. I'm a bit unsure about the version to use. Since I start now
version 2
might be ready when I need to freeze my code. How stable is the TCP client
and
server part of MINA 2?
Version 2 is probably
Hi,
instead of creating anew connector for each new connection, just connect
using the same connector to the newly created InetSocketAddress.
Alex Shneyderman wrote:
Hi, all!
I am trying to run load simulation agent, which will have to open up
as many connections as it possibly can - I am
GERARD Vincent AWL-IT wrote:
Hi all,
Using Mina 1.1.7, I was busy testing the EchoServer example. I just wonder why
do you extends ServerSocketFactory and SocketFactory ?? Is it necessary when
you use SocketAcceptor or SocketConnector ? Are they called in the example (and
where?).
Related to
binayakumar.pa...@wipro.com wrote:
Hi,
I am using Apache mina-core-2.0.0-M1. and Java 6 . I am unable to
reset the write Ideal Time.
.. The client is set by writeIdealTime(30) but when ever I received
any message from server I have to reset the writeIdealtime. Thanks in
advance for
Darryl Pentz wrote:
Hi all,
Apologies for bumping this one - I was sure somebody would be able to respond
to this. We're seeing some really poor performance on some of our higher load
servers, but the problem is that to run profilers on them when they're under
load is just not feasible. So
Darryl Pentz wrote:
Hi Emmanuel,
Thanks very much for your reply.
The number of thread you need to setup is impossible to define without any
knowledge about your code.
For instance, if you access a database in the handler, it's pretty obvious that
the thread might be stuck
boB Gage wrote:
Rats, I musta screwed something up on my endI hear RC2 will
contain the only patch we've applied, so I'm thinking we'll just skip
RC1 if I can't make the source build anymore...
I just checked out a clean copy (
http://svn.apache.org/repos/asf/mina/trunk ) and ran '
Julien Vermillard wrote:
Le Tue, 27 Oct 2009 10:44:30 +0100,
pi...@dokom.net a écrit :
Well, I use version 2.0M6 and I have trouble with the order of
filters. I created a protocol encoder/decoder and some filters. The
filters extend IoFilterAdapter and overwrite messageReceived/Sent.
This
We have had the same issue in Apache Directory project, and we have had
to implement the codec in a certain way in order to make it work, as it
was a two stage decoder. Not really easy...
Could you please explain?
We have a two stages decoder. It's all done in one single codec, which
is
Shiran wrote:
Please follow the instructions on http://mina.apache.org/mailing-lists.html
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
Erinc Arikan wrote:
Thanks so much Emmanuel;
I totally forgot to mention that I am using MINA 2.0 RC1.
I gave it a try and It worked great, I see 2-3 seconds between ack and
response now.
Great !
One thing that I wonder is optimum number of threads for an executor.
For now I set it to
Mark Wallsgrove wrote:
Hi all,
Hi,
Is there a new line sent at the very end off your incoming message, so
that the textLineDecoder can know that the message has been fully received ?
I am having some problems with the TextLineCodecFactory Mina 2.0.0.
For some reason when I try to receive
xmuysa wrote:
Hi,
In our project,we need the performance of socket more than 500tps,
FYI, on my laptop, I get 4500 LDAP requests per second using Apache
Directory Server, and we went up to 13 000 requests per second on a 4
way CPU computer. And trust me, LDAP is a pretty expensive protocol.
Mark Wallsgrove wrote:
Hey,
Thanks for the quick replies. Surely this isn't due to fragmentation?
Wouldn't fragmentation come down to multiple reads per network packet
being sent? Which would be fine, but all the messages that are being
sent fit within a single tcp/ip packet and are being
On Sat, Nov 14, 2009 at 2:44 PM, d...@xx d...@proxiflex.fr wrote:
Well it is difficult to use Mina if you don't know how socket are working...
When you buy a car, how to drive a car is not explained in the car
documentation !
How strange ... ;-)
--
Regards,
Cordialement,
Emmanuel Lécharny
Mathieu Sacrispeyre wrote:
Hello,
Hi,
I have a project which is working fine with mina 2.00 M5 and serial
transportation.
I tried to update to rc1 but it do not work anymore.
There is an handler that adds a protocol codec filter to the 2 placed by its
superclass in the filterchain of the
Mathieu Sacrispeyre wrote:
I agree with you : my code is working well with the previous version so I would
be disappointed not to be able to use it anymore
In my case, passing an IoBuffer to the upper codec isn't so annoying even if it
sounded a bit strange at the beginning.
I have a
Pavel Zdenek wrote:
2009/11/23, Emmanuel Lecharny elecha...@apache.org:
Pavel Zdenek wrote:
Greetings fellow min(a)ers!
I understand the controversy over messageSent, because the feature
of firing twice per each actual object being encoded is annoying me as
well. Anyway, i do need
:41 PM, Emmanuel Lecharny elecha...@apache.orgwrote:
Damn Nagle ! ( http://en.wikipedia.org/wiki/Nagle_algorithm )
Check the FAQ : http://mina.apache.org/faq.html (
Why does SocketConnector send several messages as one message?)
Zvika Gart wrote:
Hello,
Please help
Zvika Gart wrote:
The default is false...
I tried disabling Nagle by setting TcpNoDelay to true. As expected, this
didn't have any effect - the server doesn't send any data to the client,
only receives data.
Assuming that you are sending 8Kb buffers, anyway, it should not make
any
Zvika Gart wrote:
This is the code of my handler. It doesn't do anything. That's the point.
The server should just consume the data as fast as it can.
Interesting. I have to test this code on my computer to see exactly what
can be the impact.
Can you add an executor in the filter cxhain to
Zvika Gart wrote:
The default threading model in 1.1.7 is to use the executor filter. I also
tried removing it. Both don't help.
Ok.
I tested this scenario using two PCs at the office connected with a
crossover cable. The MINA server is reaching the 100 Mbps link speed limit.
Why running on
Alexander Christian a écrit :
Hi guys,
snip/
I've no idea what causes this bufferunderflow. And i've no idea how to
track down the root of this issue (the stack does only show mina
classes ..).
Unchecked exception thrown when a relative get operation reaches the
source buffer's limit.
Hi,
more inline
zswallow a ??crit :
I use mina-2.0.0-RC1 to recv media data(TCP/IP) and immediately send it out.
I set 2 NioProcessor, one is for recving data, the other is for sending the recved data.
Hmmm... Can you post the code ? It's a bit strange, I don't see how you
can dedicate a
Alexander Christian a écrit :
Hey there,
Am I the only one who faced this problem? No comments? No problems?
Is it possible that you provide a piece of code that demonstrate the
problem ?
Thanks !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
Srikanth J a écrit :
Hi
I am facing a problem with tcp half-open connection. Would really
appreciate any thoughts on the issue
The application uses mina tcp server (mina version - 1.1.7) with a
MLLP codec (MLLP codec is provided by apache-camel). The problem is
that this application runs
Hi,
please mention the MINA version you are using when psoting a question...
Comments inline.
Simmons, Aaron a écrit :
I am implementing a mina server for a protocol that can sometimes send very large
messages (250K). I've noticed that receiving these messages can be very slow
(12s).
This
Simmons, Aaron a écrit :
You can change this value before opening the acceptor, by injecting the
desired value in the SessionConfig object. Something like :
final IoAcceptor acceptor = new NioSocketAcceptor();
acceptor.getSessionConfig().setSendBufferSize( whatever fits you );
...
Hmm,
Simmons, Aaron a écrit :
There is an issue with the way we handle the sendBufferSize, it's
initial size is small (8192 bytes), and should be set to the system
default. See DIRMINA-651 for more information.
I looked up DIRMINA-651 (Data Race in
Christopher Popp a écrit :
Hi,
Hi,
comments inline
I wanted to get some feedback. (MINA 2.0.0 M6).
We're currently doing inrush testing of clients against our mina based
application. We're able to have 1024 clients connect in roughly simultaneously
(30 second window), however we're not
Ok.
Create a JIRA, not sure someone can check the code in the next couple of
days, so with a JIRA, it won't be forgotten !
Thanks !
On Wed, Dec 30, 2009 at 2:40 AM, John Fallows john.fall...@kaazing.comwrote:
On Tue, Dec 29, 2009 at 3:10 PM, Emmanuel LŽcharny elecha...@gmail.com
wrote:
hakan eryargi a écrit :
hi,
how can i guarantee messages are processed in arrival order and
sequantially (one is processed after previous is completed) for
NioSocketAcceptor ?
This is guaranteed, as soon as you don't inject an ExecutorFilter in
your chain (see [1] for more info about this
Laurent Cohen a écrit :
Hello all,
Typically, a technique that I've implemented was using the fact that,
when the remote peer is disconnected for any reason, the corresponding
SelectionKey on the server becomes readable().
Even when the client hasn't sent a FIN ?
It is possible to use this
https://issues.apache.org/jira/browse/DIRMINA-755 created :)
You can add you as a follower, you'll receive any update on this issue
automatically.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
David Rosenstrauch a écrit :
On 01/13/2010 03:39 AM, Emmanuel Lcharny wrote:
vagrant1984 a écrit :
We are currently using MINA 2.0.0-M6.
The current version is 2.0.0-RC1, please switch to this version as
many bug fixes has been injected into the code.
I've actually been holding off on
Ted Yu a écrit :
Hi,
I saw this snippet in our server log many times:
snip/
java.io.IOException: Connection reset by peer
/snip
If someone has seen such stack trace, please share how to fix the problem.
Very simple : stop accepting clients who evily disconnect without notice
!
Christopher Popp a écrit :
Emmanuel Lcharny wrote:
That would be crazy :)
Really, MINA does that for you. One simpe rule: one client, one session. One
hundred thousands clients, one hundred thousands sessions (it has been tested
up to these numbers ;)
Out of curiosity, how was a
Michael Clifford a écrit :
Hello. I've started playing around with storing data as attributes in the session object. That's really useful. :-) And you had suggested storing the string that comes through in the session as a session attribute. What I'm wondering is if there might be a more
jose vilmar estacio de souza a écrit :
One more question please.
Looking at class BlackListFilter I saw that the locking mechanism was
implemented in all routines, sessionCreated, sessionOpened,
sessionClosed, sessionIdle, messageReceived and messageSent.
I think that would be sufficient to
Michael Clifford a écrit :
I'm doing pretty well using the MINA 1.1 code base, but it looks like some of
the examples require the use of 2.0. I'm a bit worried about the note that
says that 2.0 is bleeding edge code though.
That simply mean it's the code we are working on. There haven't been
Hi,
in the first case, you can set the position in the byteBuffer using the
position() method.
However, you will have the exact same problem than in case 2 : you will get
a BufferUnderflow for the same reason :
a call to in.hasRemaining() does not tell you that you hace enough bytes to
be
On 2/8/10 12:33 PM, Harsha Sri-Narayana wrote:
Is there a time estimate for when mina 2.0 will be released?
H... When it's ready !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com
201 - 300 of 506 matches
Mail list logo