[jboss-remoting-issues] [JBoss JIRA] Created: (JBREM-1251) WriterOutputStream.write() won't call doFlush() until the ByteBuffer is full

Ron Sigal (JIRA) jira-events at lists.jboss.org
Wed Oct 20 16:53:54 EDT 2010


WriterOutputStream.write() won't call doFlush() until the ByteBuffer is full
----------------------------------------------------------------------------

                 Key: JBREM-1251
                 URL: https://jira.jboss.org/browse/JBREM-1251
             Project: JBoss Remoting
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: stream
    Affects Versions: 3.1.0.Beta2
            Reporter: Ron Sigal
             Fix For: 3.1.0.Beta3


If a client sends a java.io.Writer and the org.jboss.remoting3.RequestListener writes a short message to it and flushes, the message isn't available on the client side. org.jboss.remoting3.stream.WriterOutputStream.write() won't call doFlush() until the ByteBuffer is full.  So the RequestHandler has to close the writer, and then WriterOutputStream.close() will call doFlush().

WriterOutputStream.write() should be flushing.  Also, the behavior should be consistent with OutputStream.

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

        


More information about the jboss-remoting-issues mailing list