Revision: 8407
Author: [email protected]
Date: Thu Jul 22 12:08:40 2010
Log: Make the deRPC server code compatible with servlet filters that alter the HTTP
response after the RPC payload is created.
Patch by: bobv
Review by: tms

http://code.google.com/p/google-web-toolkit/source/detail?r=8407

Modified:
 /trunk/user/src/com/google/gwt/rpc/server/RpcServlet.java
 /trunk/user/src/com/google/gwt/rpc/server/WebModePayloadSink.java

=======================================
--- /trunk/user/src/com/google/gwt/rpc/server/RpcServlet.java Wed Jul 21 07:51:31 2010 +++ /trunk/user/src/com/google/gwt/rpc/server/RpcServlet.java Thu Jul 22 12:08:40 2010
@@ -218,7 +218,6 @@

// Invoke the core dispatching logic, which returns the serialized result.
     processCall(clientOracle, requestPayload, out);
-    out.close();

     if (DUMP_PAYLOAD) {
       byte[] bytes = ((ByteArrayOutputStream) out).toByteArray();
=======================================
--- /trunk/user/src/com/google/gwt/rpc/server/WebModePayloadSink.java Mon Jun 7 09:38:44 2010 +++ /trunk/user/src/com/google/gwt/rpc/server/WebModePayloadSink.java Thu Jul 22 12:08:40 2010
@@ -887,14 +887,6 @@
    */
   @Override
   public void finish() throws SerializationException {
-    if (finished) {
-      return;
-    }
-    try {
-      out.flush();
-    } catch (IOException e) {
-      throw new SerializationException("Could not flush stream", e);
-    }
     finished = true;
   }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to