You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2008/12/19 00:15:44 UTC

[jira] Commented: (DIRMINA-650) Mina server does not recieve all data sent by client using SSLSocketFactory

    [ https://issues.apache.org/jira/browse/DIRMINA-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657937#action_12657937 ] 

Emmanuel Lecharny commented on DIRMINA-650:
-------------------------------------------

Hmmm... Strange. I have tested your program, with slight modifications (basically, adding logs and using KeyManagerFactory.getDefaultAlgorithm() instead of the static "SunX509" string - a good habit, not all of us are running with a sun VM). Here are the logs I get :

Client sending: hello
>>> Session /127.0.0.1:59476 created
+++ Session /127.0.0.1:59476 opened
Client sending: send
Server got: 'hello', waiting for 'send'
Server got: 'send', sending 'data'
... Sending data to Session /127.0.0.1:59476 created
Client got: data
>>> Session /127.0.0.1:59477 created
+++ Session /127.0.0.1:59477 opened
Client sending: hello
Client sending: send
<<< Session /127.0.0.1:59476 closed
Server got: 'hello', waiting for 'send'
.......

As you can see, it blocks on the second send, the server never receives the second hello.

Have you tried MINA 2.0.0-M4 ?

> Mina server does not recieve all data sent by client using SSLSocketFactory
> ---------------------------------------------------------------------------
>
>                 Key: DIRMINA-650
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-650
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 1.1.7
>            Reporter: Kevin Koltzau
>            Priority: Critical
>         Attachments: ssltest.zip
>
>
> Using mina on the server with SSLFilter, and a client using SSLSocketFactory the server does not recieve all
> data sent by the client.
> The client creates a socket, sends data to the server and waits for a response then closes the socket.
> The first connection works fine, if the client then repeats on the same thread the second attempt almost always
> fails. The server never gets all the data the client sent, and so never sends a response.
> A similar problem seems to be described in DIRMINA-580, and in fact the fix described in [1] seems to fix the problem. However the fix that was accepted into the 1.1 branch does not correct the problem for me.
> Attached is a test case that almost always fails (on some systems I've tried it fails every time, others it fails 5 out of 6 times)
> [1] http://issues.apache.org/jira/browse/DIRMINA-580?focusedCommentId=12595789#action_12595789

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.