Re: About apache MINA

2016-06-10 Thread Jonathan Valliere
I've been working with NIO directly for many years and I haven't seen this issue in a very long time. The selector will spin out of control if there are no more file descriptors but that's not the fault of NIO. What OS is the issue appearing on? What version of Java? Sent from my iPhone >

Re: About apache MINA

2016-06-10 Thread Jonathan Valliere
with Java and is a function of the underlying OS. Sent from my iPhone > On Jun 10, 2016, at 9:41 AM, Emmanuel Lécharny <elecha...@gmail.com> wrote: > >> Le 10/06/16 à 13:49, Jonathan Valliere a écrit : >> I've been working with NIO directly for many years and I haven't seen

Re: Deadlock when using SslFilter and ProxyFilter together

2016-02-09 Thread Jonathan Valliere
Obviously something is wrong with the thread-safe operation the write stack. If it was thread safe then there is no need to ever have locks in the filter chain unless you have an executor filter. 1027 exposes a bug in the lock routines of IoSession Sent from my iPhone > On Feb 9, 2016, at

Re: Address already in use when restarting server

2016-10-19 Thread Jonathan Valliere
If a remote tcp connection is open to that port then TCP will always say Address already in use. Set the Reuse Address flag and it will work fine. Sent from my iPhone > On Oct 19, 2016, at 5:58 AM, Emmanuel Lécharny wrote: > > > >> Le 19/10/16 à 11:27, Michał Gałuszka

Re: MINA3.0 recommended

2017-08-18 Thread Jonathan Valliere
I don't have the code in front of me, but are you saying that the modification of the Write Queue is no longer concurrent? Possibly the Write Queue is a concurrent data structure and the synchronize mechanism is no longer required. It seems odd that someone would remove concurrency from that

Re: Data throttling for large window sizes

2017-08-30 Thread Jonathan Valliere
You can measure the outbound queue length, correct? Limit it to X number of Write Requests then throttle it yourself by pausing the inbound. On Wed, Aug 30, 2017 at 2:55 AM, Juan Palacios wrote: > Hi, > Today I created DIRMINA-1070 >

Re: Maven Plugin Issue FTP Server

2018-05-07 Thread Jonathan Valliere
n dropped. This is standard behaviour of the ASF > mail server) > > Le 07/05/2018 à 18:49, Jonathan Valliere a écrit : > > I'm trying to make the security fix for the FTP server but I am seeing an > > issue when building the maven project. > > > > apache-rat-plugin:0.12:check (

Maven Plugin Issue FTP Server

2018-05-07 Thread Jonathan Valliere
I'm trying to make the security fix for the FTP server but I am seeing an issue when building the maven project. apache-rat-plugin:0.12:check (5 errors) I've attached a screenshot. Do I need to install this plugin? I'm not sure what to do here.

Re: current Apache MINA state.

2018-07-12 Thread Jonathan Valliere
Mina 3 will be renamed Mina Future, has no ETA, and might have limited backwards compatibility with older Mina. I would suggest updating to support the current 2.X Mina branch. It is actively supported. On Thu, Jul 12, 2018 at 9:01 PM Pablo Caballero wrote: > Hi community. > > Is the MINA

Re: Detecting non-idle but non-active either sessions

2018-03-25 Thread Jonathan Valliere
Are you referring to TCP sockets or some kind of protocol over TCP? In MINA idle and non-active are same thing. Either data is received on the socket or not. If data isn’t received and the idle timer is configured, then idle events are dispatched and the IoHandler can use that event to take the

Re: Too many ports open

2018-03-16 Thread Jonathan Valliere
It’s not a port it’s a File Descriptor. The socket events are handled by a selector which uses 1 File Descriptor. There is usually one per processor. You can manually set the number of socket processors. On Fri, Mar 16, 2018 at 11:49 AM Simo Chiegang, Boris Arthur < boris.s...@heidelberg.com>

Re: SFTP server whitelist

2018-10-05 Thread Jonathan Valliere
Unless you need business logic in the whitelist, you could use the Linux firewall. Otherwise you could take a look at org.apache.mina.filter.firewall.* On Fri, Oct 5, 2018 at 7:22 AM TuanNN wrote: > Currently, I'm using sshd-core and mina-core libraries to create sftp > server. > I want to

Re: MINA filter chains breaking under stress

2019-01-14 Thread Jonathan Valliere
Upon a quick review of your email, I have the following notes. The filterchain is not thread safe. You have to write threadsafe filters. You must also make your encoded message system threadsafe. Just as with SSL the actual encoding process must occur within a synchronized block. As far as

Re: Getting "Too many open files" warnings11

2018-12-05 Thread Jonathan Valliere
ahindra.com/tim/disclaimer.html internally within > TechMahindra. > > === > > -Original Message- > From: Jonathan Valliere > Sent: Wednesday, December 5, 2018 4:34 PM > To: users@mina

Re: Getting "Too many open files" warnings11

2018-11-30 Thread Jonathan Valliere
What version of Mina are you using? We added code to mitigate this specific exemption a while back. Do you know how much cpu Java was consuming at that point in time? On Fri, Nov 30, 2018 at 8:24 AM Krishan Babbar wrote: > Thanks Stefan, > > It would be great if you could answers other

Re: Getting "Too many open files" warnings11

2018-11-30 Thread Jonathan Valliere
ate, were you able to provide the solution? > I mean what would be the solution if you know? > > Thanks & Regards, > Krishan Babbar > > -----Original Message- > From: Jonathan Valliere > Sent: Friday, November 30, 2018 6:56 PM > To: users@mina.apache.org > Cc:

Re: Does IoSession.write() do buffering?

2018-09-18 Thread Jonathan Valliere
There should be no aggregation, especially for Datagrams. On Tue, Sep 18, 2018 at 1:57 PM Raghavendra Balgi wrote: > Hey Krishan, You should probably consider using a CodecFilter as described > here - > > https://mina.apache.org/mina-project/userguide/ch9-codec-filter/ch9-codec-filter.html > >

Re: Loopback messages

2019-02-14 Thread Jonathan Valliere
On a side note, this is the developers mailing list. We're filling the inboxes of other developers that probably don't want to be a part of this conversation. We should move it to the users@mina.apache.org mailing list. On Thu, Feb 14, 2019 at 11:36 AM Jonathan Valliere wrote: > so I can

Re: NioSocketAcceptor grabbing a number of ports when instantiated

2019-05-17 Thread Jonathan Valliere
MINA only allocates ports the application tells it to. Nothing is automatic. On Fri, May 17, 2019 at 10:23 AM Emmanuel Lécharny wrote: > > On 17/05/2019 16:04, Phil Hudson wrote: > > > > Hi All, > > > > I have 2 questions about the way NioSocketAcceptor allocates and uses > > ports. > > > >

Re: High CPU Utilization because of Mina-core jar

2019-05-24 Thread Jonathan Valliere
See https://issues.apache.org/jira/browse/DIRMINA-1114?jql=project%20%3D%20DIRMINA%20AND%20resolution%20%3D%20Unresolved%20AND%20text%20~%20%22cpu%22%20ORDER%20BY%20priority%20DESC%2C%20updated%20DESC On Fri, May 24, 2019 at 10:17 AM Guus der Kinderen < guus.der.kinde...@gmail.com> wrote: > I

MINA 3.0 DEPRECATED

2019-05-24 Thread Jonathan Valliere
Hello MINA developers & users, I'm sure your inboxes have been flooded with emails from JIRA regarding issues being closed. Emmanuel and I have decided to and are beginning the process of deprecating the 3.0 branch. This means that support for the 3.0 branch has officially ended. All

Re: IoFilter mark() usage, between 2.0 and 2.1

2019-05-03 Thread Jonathan Valliere
David, The `buf.mark()` and `buf.reset()` calls are dangerous when used in conjunction with a dynamic call stack and are being removed from the MINA Filter system to improve compatibility with the code you write. 1> Some things aren't being back-ported to 2.0.X, the SSL improvements are one. 2>

Re: Logging Problem in ProtocolCodecFilter

2019-04-24 Thread Jonathan Valliere
Oh I’ll fix that in the morning. On Wed, Apr 24, 2019 at 3:22 PM Emmanuel Lecharny wrote: > Hi Manuel, > > There is a bug in the function that dumps data as hex ( > https://issues.apache.org/jira/plugins/servlet/mobile#issue/DIRMINA-1104) > > This should be fixed in a coming version. > > Le

Re: Handling MQTT messages using apache mina library is possible?

2019-07-22 Thread Jonathan Valliere
Mina uses the Socket API for TCP and UDP. On Mon, Jul 22, 2019 at 5:17 AM Dhananjay Kandari < dk00453...@techmahindra.com> wrote: > Hi, > Is it possible to use apache mina library to handle MQTT messages? > In my project, we are using mina library to handle request coming over > TCP/IP and now

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
Huh? On Thu, Apr 9, 2020 at 1:09 PM Weact wrote: > > > > Is this server ready for deployment for a chat application supporting 1mm > users or is it more in the prototype phase? > > > > We will be using group chat, roles, moderators and adding some unique chat > threading models for distributed

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
Mina is a queue and flush framework. All writes are queued up and scheduled later using the poll/kqueue system. The ExecutorFilter uses threading to process incoming messages using a pool of threads instead of the reactor/processor thread. This frees the processor thread to do IO. Have you

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
t; acknowledges that emails are susceptible to alteration and their integrity > cannot be guaranteed and that Company does not guarantee that any e-mail is > virus-free and accept no liability for any damage caused by any virus > transmitted by this email.” > > -Original Message- > F

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
t; (in whole or part), in any manner, is strictly prohibited and actionable at > law. The recipient acknowledges that emails are susceptible to alteration > and their integrity cannot be guaranteed and that Company does not > guarantee that any e-mail is virus-free and accept no liabilit

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
d and actionable at > law. The recipient acknowledges that emails are susceptible to alteration > and their integrity cannot be guaranteed and that Company does not > guarantee that any e-mail is virus-free and accept no liability for any > damage caused by any virus transmitted by this emai

Re: MINA: ExecutorFilter on NioSocketConnector

2020-04-09 Thread Jonathan Valliere
t acknowledges that emails are susceptible to alteration > and their integrity cannot be guaranteed and that Company does not > guarantee that any e-mail is virus-free and accept no liability for any > damage caused by any virus transmitted by this email.”* > > > > *From:* Jonathan Va

Re: MINA vs a NIO based protocol stack

2020-04-14 Thread Jonathan Valliere
Deals with fragmentation? UDP fragmentation is handled in the kernel. On Tue, Apr 14, 2020 at 9:19 AM Emmanuel Lécharny wrote: > > On 14/04/2020 14:31, Simha N wrote: > > Hi, > > > > I am evaluating MINA for development of Java based networking clients > based > > on protocols such as SNMP and

Re: Vysper support for Xmpp over websockets (RFC 7395)

2020-05-17 Thread Jonathan Valliere
Vysper is in maintenance only mode right now but if you are interested in contributing, just let us know. On Sat, May 16, 2020 at 3:35 PM technologist.kj wrote: > Hi team, is there any development happening in Vysper for supporting RFC > 7395 > (https://tools.ietf.org/html/rfc7395) ? > > For

Re: Datagram Session closed automatically ?

2020-10-04 Thread Jonathan Valliere
They’re probably being automatically culled if you haven’t used it in a while. On Sun, Oct 4, 2020 at 4:53 AM Alex Buechel wrote: > Hello together, > > We have a scenario using a Unix-Machine, sending Datagram-packages from a > java-based application to another machine(Windows). On this second

Re: Question about sending a message via udp to multiple clients

2020-09-30 Thread Jonathan Valliere
That's basically how it works. Only thing is, when you share a buffer between multiple IoSessions you need to call #slice() on your IoBuffer for every IoSession you write the message to. On Wed, Sep 30, 2020 at 10:06 AM Alex Buechel wrote: > Hello guys, > > Imagine i have a String-message,

Re: Need SSH Client example

2020-06-01 Thread Jonathan Valliere
So you want an SFTP example? On Mon, Jun 1, 2020 at 11:44 AM Steve Pruitt wrote: > I am getting started with SSHD / Mina. My use case is simply copying > files to a Linux machine. > > I would appreciate is someone can show a simple getting started code for a > file copy. There seems to be

Re: Does mina-core-2.1.2.jar supported over Open JDK platform or not?

2020-07-15 Thread Jonathan Valliere
Should work with any compliant JDK On Wed, Jul 15, 2020 at 3:23 AM Ravi Verma wrote: > Hi, We are using mina-core-2.1.2.jar for one of our products. Need to > confirm whether mina-core-2.1.2.jar is supported on Open JDK platform or > not? Any suggestions are highly appreciated. Thanks, Ravi >

Re: Mina Server losing messages

2021-06-27 Thread Jonathan Valliere
Thanks for the report. Please make an issue in JIRA. On Sun, Jun 27, 2021 at 12:14 PM Itzhaki, Guy wrote: > Hi all, > > > > During our tests we found that in some circumstances Mina server loses > messages. > > From what we understand this happens when client opens connection and then > sends

Re: delay in session.write and messageSent event for same message

2021-07-05 Thread Jonathan Valliere
part), in any manner, is strictly prohibited and actionable at > law. The recipient acknowledges that emails are susceptible to alteration > and their integrity cannot be guaranteed and that Company does not > guarantee that any e-mail is virus-free and accept no liability for any > damage c

Re: delay in session.write and messageSent event for same message

2021-07-05 Thread Jonathan Valliere
Have you profiled the garbage collector and heap memory while this happens? On Mon, Jul 5, 2021 at 7:35 AM Nitin Phuria wrote: > Dear All, > > > > We have Server developed using MINA 2.0.9 where it connects > to two other systems say System-A and System-B. > > > > The

Re: userauth_pubkey: unsupported public key algorithm: rsa-sha2-512

2021-04-08 Thread Jonathan Valliere
With all the vulnerabilities that get discovered. Running OpenSSH from 2013 is a problem. On Thu, Apr 8, 2021 at 6:12 AM uma shankar wrote: > *Environment details:* > > *Server OS* : CentOS release 6.9 (Final) > > $ ssh -V > > OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 > > $ sshd -T > >

Re: Does MINA support TCP Option 28 for forwarded IP?

2021-09-17 Thread Jonathan Valliere
That has to be implemented at the kernel. On Fri, Sep 17, 2021 at 10:05 AM Marc Boorshtein wrote: > I'm capturing the remote IP from the IoSession, but I've been asked to > capture an IP address using TCP option 28 ( > https://datatracker.ietf.org/doc/rfc7974/). Is this something that's >

Re: Does MINA support TCP Option 28 for forwarded IP?

2021-09-17 Thread Jonathan Valliere
:21 AM Jonathan Valliere wrote: > I see SO_PEERNAME = 28 but can't find any documentation of how to use it. > > Anyway, Java does not support this option. Therefore, MINA does not. > > > > On Fri, Sep 17, 2021 at 10:55 AM Marc Boorshtein > wrote: > >> >> On Fr

Re: Does MINA support TCP Option 28 for forwarded IP?

2021-09-17 Thread Jonathan Valliere
I see SO_PEERNAME = 28 but can't find any documentation of how to use it. Anyway, Java does not support this option. Therefore, MINA does not. On Fri, Sep 17, 2021 at 10:55 AM Marc Boorshtein wrote: > > On Fri, Sep 17, 2021 at 10:44 AM Jonathan Valliere > wrote: >

MINA SSL improvements

2021-07-29 Thread Jonathan Valliere
Everybody, Last week I redesigned the SSL system in MINA to fix DIRMINA-1132 and other TLSv1.3 related issues with the old code. It's currently referred to as SSL2, however it will eventually replace the original org.apache.mina.filter.ssl.* package (probably in MINA 2.2.X). The new version,

Re: How to access UDP Headers in IOHandlerAdapter

2023-01-02 Thread Jonathan Valliere
What in the header are you looking for? On Mon, Jan 2, 2023 at 12:00 PM Bobby R. Harsono wrote: > Hello, > > How can i access UDP Headers details in IOHandlerAdapter? Since the > documentations doesn't mention about this neither i can found any > references out there, > > I need this to

Re: Re: How to access UDP Headers in IOHandlerAdapter

2023-01-02 Thread Jonathan Valliere
inking maybe i can > solve this by getting remote address from headers directly, > > The remote address will be used for heartbeat / keep alive implementation > > > > On 2023/01/02 17:17:48 Jonathan Valliere wrote: > > What in the header are you looking for? > > &g

Re: New deadlock potential in MINA 2.2's SSLHandler

2022-12-13 Thread Jonathan Valliere
Check my graphic in the previous email. On Mon, Dec 12, 2022 at 3:53 AM Emmanuel Lécharny wrote: > Hi Guus, > > there is something missing in the stacck trace: the two threads are > blocked on different monitors: > * SSLHandlerG0@99f49e2 owned by socket_c2s_ssl-thread-2 > *

Re: SSL Issue with Mina NioConnector

2022-11-10 Thread Jonathan Valliere
Please update to Mina 2.2 On Thu, Nov 10, 2022 at 1:41 AM Nitin Phuria wrote: > Dear All, > > > > We are trying to use Mina library to connect to server which is running the > on SSL TLSv1.2. We are using JDK8u341 on client side with Mina 2.1.6 core > library. > > > > Client Log > >

Re: Fwd: migration from apache mina 2.0.21 to 2.0.23 issue

2023-04-17 Thread Jonathan Valliere
, 8443); > } > }; > > try { > NioSocketConnector connector = getConnector(); > ioSession = connector.connect(address, > initializer).awaitUninterruptibly().getSession(); > } catch (RuntimeIoException eio) { > initializati

Re: Apache mina 2.2.1 thread blocking issue.

2023-04-25 Thread Jonathan Valliere
Please make a Jira. I also need an example to run which reproduces the error. On Tue, Apr 25, 2023 at 6:35 AM Kishore Mokkarala wrote: > Hi, > I have migrated from 2.0.21 to 2.023 for solving CVE, i have seen thread > blocking issue, So used latest mina verstion 2.2.1 but still threads were >

Re: Fwd: migration from apache mina 2.0.21 to 2.0.23 issue

2023-04-14 Thread Jonathan Valliere
Looking at the code for your existing filter it appears like you’re just trying to create the SSLEngine so it can be reused for subsequent connections by passing in the IP address and Port? This is already a feature in the new filter.

Re: Upgrading from mina-core ( 1.7.1 ) to Mina-core 2.2.1

2023-04-09 Thread Jonathan Valliere
We also likely broke some things between 2.1 and 2.2 (some debate about whether we should be at 3.0 despite it already exists in a very old branch) On Sun, Apr 9, 2023 at 9:54 AM Isaac M wrote: > A lot has changed since the old version and likely refactored to a > different package. See

Re: Apache MINA Mastodon account is on!

2023-07-02 Thread Jonathan Valliere
 On Sun, Jul 2, 2023 at 6:32 PM Emmanuel Lécharny wrote: > Hi! > > we just have created a Mastodon account to inform the world abouut the > Apache MINA project evolution. > > Feel free to follow @apachem...@fosstodon.org ! > -- > *Emmanuel Lécharny* > >

Re: Individual SSLFilter per connector

2024-02-08 Thread Jonathan Valliere
No, you should not have to create multiple instances. The necessary stateful data is saved to the Connection. On Feb 1, 2024 at 5:22:36 AM, Kishore Mokkarala wrote: > Any response would be greatly appreciated. > -- > M.V.S.Kishore > 91-9886412814 > > >

Re: Individual SSLFilter per connector

2024-02-19 Thread Jonathan Valliere
@Kishore Mokkarala are you able to test this branch? https://github.com/apache/mina/compare/2.2.X...bugfix/DIRMINA-1173 On Feb 18, 2024 at 2:05:57 PM, Jonathan Valliere wrote: > The other diagram possibly had a consumer order issue. While the Queue > will guarantee that the me

Re: Individual SSLFilter per connector

2024-02-20 Thread Jonathan Valliere
Okay, let me know when you’re able to test with that branch. I think it should solve your problem. On Feb 20, 2024 at 6:32:06 AM, Kishore Mokkarala wrote: > @ Valliere I am not available for a week. > > On Tue, 20 Feb, 2024, 8:59 am Jonathan Valliere, > wrote: > > @Kishore

Re: Individual SSLFilter per connector

2024-02-17 Thread Jonathan Valliere
at we can only read > Handshake packets until the HS is completed) > > I guess it fits with what you have in mind. > > > On 17/02/2024 04:12, Jonathan Valliere wrote: > > I was thinking this over last weekend…. > > > If I simply removed the synchronization then there CO

Re: Individual SSLFilter per connector

2024-02-16 Thread Jonathan Valliere
écharny, > > <mailto:elecha...@gmail.com>> wrote: > > > > > > Hi Jonathan, > > > > > > in this very case, I think there is a race condition when using the > > > SSLFilter in conjonction with the StateMachine

Re: Individual SSLFilter per connector

2024-02-17 Thread Jonathan Valliere
t; I would like to know what is the difference between 2.0.25 and 2.2.1/ > 2.2.3. > > On Sat, 17 Feb, 2024, 6:37 pm Jonathan Valliere, > wrote: > > There is also some additional complexity supporting the scenario where two > > different threads are triggering “receive” eve

Re: Individual SSLFilter per connector

2024-02-17 Thread Jonathan Valliere
R.isDebugEnabled()) { > > LOGGER.debug("{}: Writing Message : {}", > > getSessionInfo(session), writeRequest); > > } > > > > boolean needsFlush = true; > > SslHandler sslHandler = getSslSessionHandler(session); >

Re: Individual SSLFilter per connector

2024-02-18 Thread Jonathan Valliere
implementation. On Feb 17, 2024 at 7:33:21 PM, Jonathan Valliere wrote: > Okay so I need to figure out how to work it so no lock is held while > calling either the upper or lower filter. > > CONFIDENTIALITY NOTICE: The contents of this email message and any > attachments are intended solely fo

Re: Individual SSLFilter per connector

2024-02-18 Thread Jonathan Valliere
. This will ensure that messages are produced and enter the respective queues in guaranteed order and that they will be consumed with upstream or downstream in order without locking both directions concurrently. On Feb 18, 2024 at 1:47:58 PM, Jonathan Valliere wrote: > Emmanuel, > > The attached diagram