) and so far it's a great and simple API for sending out email notifications. Everything works well as long as the connection with the SMTP is ok, but there seems to be a bug when the SMTP connection pool (default is 10 connections) is exhausted due to continuous connection errors with the SMTP server.
The SMTP connection can't seem to recover and reconnect even after the SMTP server is up and running. After getting this debug log message (10 entries):
DEBUG i.v.ext.mail.impl.MailClientImpl handleError
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/
127.0.0.1:3025 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:347)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:627)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:551)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:465)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:437)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
at java.lang.Thread.run(Thread.java:745)
the following debug messages were logged repeatedly
DEBUG i.v.e.m.impl.SMTPConnectionPool getConnection()
DEBUG i.v.e.m.impl.SMTPConnectionPool waiting for a free socket
DEBUG i.v.e.m.impl.SMTPConnectionPool getConnection()
DEBUG i.v.e.m.impl.SMTPConnectionPool waiting for a free socket
Any suggestions on how to effectively deal with this issue?