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...
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.
Logged In: YES user_id=681274
The call to flush() has to be moved out of the else clause.
patch:
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.
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.
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 =