You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2010/08/06 19:50:51 UTC
svn commit: r983067 -
/incubator/thrift/trunk/lib/csharp/src/Transport/THttpClient.cs
Author: bryanduxbury
Date: Fri Aug 6 17:50:51 2010
New Revision: 983067
URL: http://svn.apache.org/viewvc?rev=983067&view=rev
Log:
THRIFT-834. csharp: THttpClient resends contents of message after transport errors
This patch causes the send buffer to be refreshed even in the case of errors.
Patch: Anatoly Fayngelerin
Modified:
incubator/thrift/trunk/lib/csharp/src/Transport/THttpClient.cs
Modified: incubator/thrift/trunk/lib/csharp/src/Transport/THttpClient.cs
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/csharp/src/Transport/THttpClient.cs?rev=983067&r1=983066&r2=983067&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/csharp/src/Transport/THttpClient.cs (original)
+++ incubator/thrift/trunk/lib/csharp/src/Transport/THttpClient.cs Fri Aug 6 17:50:51 2010
@@ -121,8 +121,14 @@ namespace Thrift.Transport
public override void Flush()
{
- SendRequest();
- outputStream = new MemoryStream();
+ try
+ {
+ SendRequest();
+ }
+ finally
+ {
+ outputStream = new MemoryStream();
+ }
}
private void SendRequest()