[
https://issues.apache.org/jira/browse/DIRMINA-814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amol Nayak updated DIRMINA-814:
-------------------------------
Couple of things.
1. The Sample I gave is just to explain crux of the issue, i have a requirement
where the number of bytes received is huge and will be sent continuously by the
client and hence i dont want to read the bytes using the above approach (using
theIOBuffer's .array() method).
2. When I write a server using Java NIO or using conventional socket
programming API (from java.net package) i dont see this behaviour and the data
is available to be read even after the client closes the connection and hence I
expect a similar behaviour.
The behaviour i feel is on close the stream can set the internal flag
indicating it to be closed for more data coming in but the internal buffers
should be released only after there is no data to be read from the stream (data
that is already written).
> Slow Receivers(servers) cannot read data already written by client
> applications after connection close is 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.