Menu

#9 No flush in zipped mode

open
nobody
None
5
2002-07-25
2002-07-25
No

In the rpc client no flush is made after the write to the
output stream... It generate an EOF exception on the
server if you try to use GZIPStream...

Discussion

  • Greger Ohlson

    Greger Ohlson - 2002-08-03

    Logged In: YES
    user_id=91348

    Lionel, can you elaborate on that? I see a flush() around
    row 268. Is an additional flush() needed somewhere?

    Regards,
    Greger.

     
  • Immanuel Scholz

    Immanuel Scholz - 2005-03-15

    Logged In: YES
    user_id=681274

    The call to flush() has to be moved out of the else clause.

    patch:

    Index: XmlRpcClient.java

    RCS file:
    /cvsroot/xmlrpc/xmlrpc/source/marquee/xmlrpc/XmlRpcClient.java,v
    retrieving revision 1.13
    diff -u -r1.13 XmlRpcClient.java
    --- XmlRpcClient.java 18 Sep 2003 14:24:14 -0000 1.13
    +++ XmlRpcClient.java 15 Mar 2005 08:22:47 -0000
    @@ -340,8 +340,8 @@
    output.write(byteStream.toByteArray());
    } else {
    output.write(xmlBuffer.toString().getBytes());
    - output.flush();
    }
    + output.flush();

    InputStream is = connection.getInputStream();
    input =

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.