Re: Only listen to connections from localhost

2015-01-14 Thread Jose María Zaragoza
2015-01-14 20:26 GMT+01:00 Alberto Garcia agarciaill...@gmail.com: Hi. I want to know how can I do to start a server but only listen to connections that comes from localhost. When you create the server using SshServer sshd = SshServer.setUpDefaultServer(); it starts listening in the port

Re: Bug (?) getting encoder in TextLineCodecFactory in Mina 1.1.7

2013-10-04 Thread Jose María Zaragoza
Thanks I'd like it but I'm having problems with a lot of FIFO file descriptores with that release 2013/10/4 Emmanuel Lécharny elecha...@gmail.com: Le 10/3/13 10:32 PM, Jose María Zaragoza a écrit : Hello: I'm using Mina 1.1.7 I strongly suggest that you switch to MINA 2.0.7. We don't

Re: Bug (?) getting encoder in TextLineCodecFactory in Mina 1.1.7

2013-10-04 Thread Jose María Zaragoza
, Jose María Zaragoza a écrit : Thanks I'd like it but I'm having problems with a lot of FIFO file descriptores with that release You still should keep going with MINA 2.0.7, otherwise you are totally on yoru own, with a version which has many unfixed issues. Now, I'm orry

Re: Bug (?) getting encoder in TextLineCodecFactory in Mina 1.1.7

2013-10-04 Thread Jose María Zaragoza
...@mobiliz.com.tr: But we don't get this problem. We are using Mina 2.0.7 ? Isn't it strange ? Bugra 4 Eki 2013 tarihinde 15:10 saatinde, Jose María Zaragoza demablo...@gmail.com şunları yazdı: OK I think that I found the cause of the problem I need to perform SocketConnector.dispose() I

Bug (?) getting encoder in TextLineCodecFactory in Mina 1.1.7

2013-10-03 Thread Jose María Zaragoza
Hello: I'm using Mina 1.1.7 I'm getting problems when i try to use a custom ProtocolCodecFilter + TextLineCodecFactory Decoding works fine but encoding doesn't: method getEncoder() is never invoked ( but getDecoder() does ) This the code: I add the filter by passing a config object when

IoSession.close() method

2013-10-02 Thread Jose María Zaragoza
Hello: I'm working with Mina 1.x ( old, I know ) and I've got a question About docs, IoSession.close() closes the session immediately. If i've got session.write(data) session.close() can be sure that data is sent properly ? o do I need to perform session.close() on messageSent method ?

Many anon_inode and FIFO pipes opened ( leak fd )

2013-10-01 Thread Jose María Zaragoza
Hi: I'm using Apache Mina 2.0.7 I'm waching by lsof command *A LOT OF* file descriptors opened like java 24512tomcat 6440u REG0,90 3779 anon_inode and java 24512tomcat 6438r FIFO0,8 0t0 1775475918 pipe java 24512

Many pipe file descriptors opened

2013-09-30 Thread Jose María Zaragoza
Hello: I'm using the Apache Mina 2.0.7 + Tomcat 6.0.23 I'm watching ( lsof ) a lot of file descriptors opened such as java 13162 tomcat 476r FIFO 0,8 0t0 680740932 pipe java 13162 tomcat 477r FIFO 0,8 0t0 680740932 pipe java 13162 tomcat 479r FIFO 0,8 0t0 680740933 pipe I wonder if this

Re: Many pipe file descriptors opened

2013-09-30 Thread Jose María Zaragoza
María Zaragoza a écrit : Hello: I'm using the Apache Mina 2.0.7 + Tomcat 6.0.23 I'm watching ( lsof ) a lot of file descriptors opened such as java 13162 tomcat 476r FIFO 0,8 0t0 680740932 pipe java 13162 tomcat 477r FIFO 0,8 0t0 680740932 pipe java 13162 tomcat 479r FIFO 0,8 0t0 680740933

Re: Send a message immediatly

2013-07-26 Thread Jose María Zaragoza
and ( doing other stuffs ) in iohandler's messageReceived would it work ? i mean , would be test sent before iohandler's messageReceived is executed? Thanks 2013/7/26 Emmanuel Lécharny elecha...@gmail.com: Le 7/26/13 11:46 AM, Jose María Zaragoza a écrit : Hello: I'm using Mina Core 2.0.7 I use

Re: Send a message immediatly

2013-07-26 Thread Jose María Zaragoza
Anyway, I tried your solution and that worked for me Thanks 2013/7/26 Jose María Zaragoza demablo...@gmail.com: OK. Thanks. One question more: if I create a new filter (iofilter1 ) , so I have iohandler --- iofilter1 When I receive a message , messageReceived on iofilter1

DEAD LOCK: IoFuture.await() was invoked from an I/O processor thread

2013-07-16 Thread Jose María Zaragoza
Hello: I'm using Mina 2.0.7 and I'm getting this error where close a session java.lang.IllegalStateException: DEAD LOCK: IoFuture.await() was invoked from an I/O processor thread. Please use IoFutureListener or configure a proper thread model alternatively. at

Re: DEAD LOCK: IoFuture.await() was invoked from an I/O processor thread

2013-07-16 Thread Jose María Zaragoza
2013/7/16 Emmanuel Lécharny elecha...@gmail.com Le 7/16/13 11:29 AM, Jose María Zaragoza a écrit : Hello: I'm using Mina 2.0.7 and I'm getting this error where close a session java.lang.IllegalStateException: DEAD LOCK: IoFuture.await() was invoked from an I/O processor thread

Re: Is there a setting to prevent too many messages coming through?

2013-05-16 Thread Jose María Zaragoza
2013/5/14 Whitener, Winona T. winona.white...@gd-ais.com My client is currently set up to fire messages back to my server very quickly. Around-1 - 3 a second. Does MINA have any type of handling to prevent too many messages from coming through? For me, a message is a high-level concept in

BufferedWriterFilter + string encoded

2013-05-13 Thread Jose María Zaragoza
Hello: I'm using Apache Mina 2.0.7 I need to send a string to a peer This string can be encoded in any chatset ( by configuration ) and I need to send it in a buffered way ( I mean, store it in a buffer and flush it ) I've got to implement it with BufferedWriterFilter and works fine , but I