[ 
https://issues.apache.org/jira/browse/DIRMINA-814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amol Nayak updated DIRMINA-814:
-------------------------------

    Attachment: Toronto.txt
                SimpleMINAServerClient.java
                Mina20Server.java

Attached the Sample Server and Client program.
Do the below steps to simulate the issue

1. Start the server (Source attached).
2. Place the attached ".txt" file in the etc directory relative to client 
application
3. Execute the client application
4. See the result on the server's console.  
5. The file is entirely written but all reads by the server after client closes 
the connection return -1 and the data is not available to the server


> Slow Receivers cannot read already read data by client connection close 
> initiated by client
> -------------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-814
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-814
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows Vista
>            Reporter: Amol Nayak
>             Fix For: 2.0.3
>
>         Attachments: Mina20Server.java, SimpleMINAServerClient.java, 
> Toronto.txt
>
>
> A simple MINA server is developed which is simulating a slow server, the read 
> is done after a sleep of 10 ms.
> A clients writes a huge chunk of bytes and closes the connection.
> This close denies a read to the stream from the client and the data already 
> sent to server is not available for read.
> A more reasonable behavior is to disallow writes but allow the server  to 
> read at least what is being already published to the server.

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

Reply via email to