ByteBuffer.setUseDirectBuffers(false) and threads

2007-02-08 Thread seven
Hello, I was monitoring a simple mina server using jconsole and I saw that after switching to heap buffers ( ByteBuffer.setUseDirectBuffers(false) ) the number of threads began to grow as more clients connected to the server. With direct byte buffers the number of threads was constant no

IoSession reconnect

2007-02-08 Thread Murat OZDEMIR
Hi everybody, I'm writing a server application which communicates mobile units on the area. Mobile units connects to server and send their datum. Because of the mobility despite IP is same, sometimes session is closed. Server sends messages to the units using the IoSession object for each

Recovering information from ByteBuffer once a session is closed

2007-02-08 Thread Bogdan Jarcau
Hi all, I am working on a protocol (TCP) that utilizes messages separated by an End Of Message character (in this case \n). I use the decodable() method to check if the message is complete and once it detects an EOM character it will return true, decode() is called, and the messsage will be

Using mina for client purpose

2007-02-08 Thread Santos xyz
I wrote a program to use mina-1.1 as client based on the example sumupr. I have copied the relevant section below. I see following issues: 1. Even on server side I see client connected, isConnected returns false. 2. session.getCloseFuture().join() throws exception. Failed to connect.

New Apache Directory Web site HowTo

2007-02-08 Thread Emmanuel Lecharny
Hi guys, Pierre-Arnaud Marcelot and Ersin Er have done a tremendous work last week to brush our website, which is based on confluence. Now, when we modify a page on confluence, it is immediatly reflected on the web site (of course, we use a template plus some CSS). Pierre-Arnaud wrote a very

line length exceeded for TextLineCodecFactory

2007-02-08 Thread peter ellis
guys I have in my code... private static final int TEXTLINECODEC_ENCODER_DECODER_LINELENGTH = 124*1024; // n x 1KiloByte followed by TextLineCodecFactory textLineCodecFactory = new TextLineCodecFactory(Charset.forName(UTF-8));

Addition for FAQ?

2007-02-08 Thread Einar Vollset
Possibly this is mentioned somewhere, but for the newbies out there (myself included..), it may be worth while, under the FAQ question: No data is writtin out to the session even if the buffer is not empty. Adding: Make sure you're trying to send a org.apache.mina.common.ByteBuffer, not a

[jira] Created: (DIRMINA-347) Server: StreamIoHandler does not close InputStream and OutputStream on sessionClosed()

2007-02-08 Thread Eric Fitchett (JIRA)
Server: StreamIoHandler does not close InputStream and OutputStream on sessionClosed() -- Key: DIRMINA-347 URL: https://issues.apache.org/jira/browse/DIRMINA-347

[jira] Updated: (DIRMINA-347) Server: StreamIoHandler does not close InputStream and OutputStream on sessionClosed()

2007-02-08 Thread Eric Fitchett (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Fitchett updated DIRMINA-347: -- Description: When reading from the InputStream provided by StreamIoHandler, the read can

[jira] Updated: (DIRMINA-347) Server: StreamIoHandler does not close InputStream and OutputStream on sessionClosed()

2007-02-08 Thread Eric Fitchett (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Fitchett updated DIRMINA-347: -- Description: When reading from the InputStream provided by StreamIoHandler, the read can

[jira] Updated: (DIRMINA-347) Server: StreamIoHandler does not close InputStream and OutputStream on sessionClosed()

2007-02-08 Thread Eric Fitchett (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Fitchett updated DIRMINA-347: -- Attachment: StreamIoHandler_CloseStreams.diff Patch attached to fix this problem, created off