I have a basic Mina client running on Android that will not send my messages
to the server. The client will however send the SESSION_SECURED message to
the server when the USE_NOTIFICATION attribute is set. The server then sends
a "hello" message that is received by the client.
The desktop version of the client works flawlessly. I even added the
BouncyCastle SSL provider to both the client and server to see if their was
any difference, which their was not.
IoSession session = future.getSession();
session.getConfig().setUseReadOperation(true);
final WriteFuture writeFuture = session.write("Hello Server" +
LineDelimiter.UNIX);
writeFuture.awaitUninterruptibly();
It never gets past this point waiting for the write to finish. I created my
own ProtocolCodecFactory that would just send a single int whenever a
message was sent, again the client never sent anything only the client
received the server message.
Any idea what would cause this?
--
View this message in context:
http://apache-mina.10907.n7.nabble.com/SSL-on-Android-can-t-send-messages-only-receive-tp40085.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.