mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
avoid double flushing of ObjectOutputStream when close is being called right afterwards anyway
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3738 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -165,7 +165,6 @@ public abstract class AbstractHttpInvokerRequestExecutor
|
||||
ObjectOutputStream oos = new ObjectOutputStream(decorateOutputStream(os));
|
||||
try {
|
||||
doWriteRemoteInvocation(invocation, oos);
|
||||
oos.flush();
|
||||
}
|
||||
finally {
|
||||
oos.close();
|
||||
|
||||
+1
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,7 +21,6 @@ import java.io.InputStream;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@@ -172,7 +171,6 @@ public class HttpInvokerServiceExporter extends RemoteInvocationSerializingExpor
|
||||
ObjectOutputStream oos = createObjectOutputStream(decorateOutputStream(request, response, os));
|
||||
try {
|
||||
doWriteRemoteInvocationResult(result, oos);
|
||||
oos.flush();
|
||||
}
|
||||
finally {
|
||||
oos.close();
|
||||
|
||||
Reference in New Issue
Block a user