You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Niklas Therning (JIRA)" <ji...@apache.org> on 2006/08/01 20:36:15 UTC

[jira] Resolved: (DIRMINA-229) IoSessionOutputStream write methods should not return before the I/O operation is fully completed

     [ http://issues.apache.org/jira/browse/DIRMINA-229?page=all ]

Niklas Therning resolved DIRMINA-229.
-------------------------------------

    Resolution: Fixed

I've made the changes as suggested by Oleg. I've also readded the code which joins on the CloseFuture in IoSessionOutputStream.close(). I think it is safe to have it there now when we also join on the writes. I've also added code which throws IOException if a write fails or if the session isn't connected when trying to write. I think this is more in line with the contract of InputStream.

> IoSessionOutputStream write methods should not return before the I/O operation is fully completed
> -------------------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-229
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-229
>             Project: Directory MINA
>          Issue Type: Bug
>    Affects Versions: 0.9.4
>            Reporter: Oleg Kalnichevski
>         Assigned To: Niklas Therning
>         Attachments: mina-bio-stream.patch
>
>
> IoSessionOutputStream write methods return before the I/O operation is fully completed, which causes issues in protocol handlers based on blocking InputStream/OutputStream model. Is it a desired behaviour?
> Per discussion with Peter Royal on the HttpComponents mailing list I am working on a simple HTTP server based on MINA and HttpComponents Core.  HttpCore does not work with the latest SVN snapshot of MINA without this patch (attached)
> Oleg

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira