Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b22b51e
)
THRIFT-834. csharp: THttpClient resends contents of message after transport errors
author
Bryan Duxbury
<bryanduxbury@apache.org>
Fri, 6 Aug 2010 17:50:51 +0000
(17:50 +0000)
committer
Bryan Duxbury
<bryanduxbury@apache.org>
Fri, 6 Aug 2010 17:50:51 +0000
(17:50 +0000)
This patch causes the send buffer to be refreshed even in the case of errors.
Patch: Anatoly Fayngelerin
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@983067
13f79535
-47bb-0310-9956-
ffa450edef68
lib/csharp/src/Transport/THttpClient.cs
patch
|
blob
|
history
diff --git
a/lib/csharp/src/Transport/THttpClient.cs
b/lib/csharp/src/Transport/THttpClient.cs
index
d5d4abc
..
bf6ca4d
100644
(file)
--- a/
lib/csharp/src/Transport/THttpClient.cs
+++ b/
lib/csharp/src/Transport/THttpClient.cs
@@
-121,8
+121,14
@@
namespace Thrift.Transport
public override void Flush()
{
- SendRequest();
- outputStream = new MemoryStream();
+ try
+ {
+ SendRequest();
+ }
+ finally
+ {
+ outputStream = new MemoryStream();
+ }
}
private void SendRequest()