mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
C#: Catch exceptions by name.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
437c03bb3d
commit
cee1e085b5
@ -85,7 +85,7 @@ namespace Thrift.Server
|
||||
while (processor.Process(inputProtocol, outputProtocol)) { }
|
||||
}
|
||||
}
|
||||
catch (TTransportException ttx)
|
||||
catch (TTransportException)
|
||||
{
|
||||
// Client died, just move on
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ namespace Thrift.Server
|
||||
//keep processing requests until client disconnects
|
||||
}
|
||||
}
|
||||
catch (TTransportException ttx)
|
||||
catch (TTransportException)
|
||||
{
|
||||
// Assume the client died and continue silently
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ namespace Thrift.Transport
|
||||
// Make server socket
|
||||
server = new TcpListener(System.Net.IPAddress.Any, this.port);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
server = null;
|
||||
throw new TTransportException("Could not create ServerSocket on port " + port + ".");
|
||||
|
Loading…
Reference in New Issue
Block a user