You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
@ -5,6 +5,9 @@ using System.ServiceModel.Channels;
|
||||
using System.ServiceModel.Security;
|
||||
using System.ServiceModel.Security.Tokens;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace System.ServiceModel.Dispatcher
|
||||
{
|
||||
@ -24,8 +27,34 @@ namespace System.ServiceModel.Dispatcher
|
||||
using (new OperationContextScope (mrc.OperationContext)) {
|
||||
try {
|
||||
process_handlers_chain.ProcessRequestChain (mrc);
|
||||
}
|
||||
catch (Exception e) {
|
||||
} catch (IOException e) {
|
||||
// FIXME?: On dropped connection do not
|
||||
// dump a stacktrace, but should be safe
|
||||
// to dump a console message as in
|
||||
// default exception handler and
|
||||
// call error_handlers_chain
|
||||
Console.WriteLine ("I/O Error (Dropped Connection?): " + e.Message);
|
||||
mrc.ProcessingException = e;
|
||||
error_handlers_chain.ProcessRequestChain (mrc);
|
||||
} catch (SocketException e) {
|
||||
// FIXME?: On dropped connection do not
|
||||
// dump a stacktrace, but should be safe
|
||||
// to dump a console message as in
|
||||
// default exception handler and
|
||||
// call error_handlers_chain
|
||||
Console.WriteLine ("SocketExcpetion (Dropped Connection?): " + e.Message);
|
||||
mrc.ProcessingException = e;
|
||||
error_handlers_chain.ProcessRequestChain (mrc);
|
||||
} catch (XmlException e) {
|
||||
// FIXME?: On dropped connection do not
|
||||
// dump a stacktrace, but should be safe
|
||||
// to dump a console message as in
|
||||
// default exception handler and
|
||||
// call error_handlers_chain
|
||||
Console.WriteLine ("XmlException (Dropped Connection?): " + e.Message);
|
||||
mrc.ProcessingException = e;
|
||||
error_handlers_chain.ProcessRequestChain (mrc);
|
||||
} catch (Exception e) {
|
||||
// FIXME: this is not really expected use of ChannelDispatcher.ErrorHandlers.
|
||||
// They are now correctly used in process_handler_chain (namely OperationInvokerHandler).
|
||||
// For this kind of "outsider" exceptions are actually left thrown
|
||||
|
Reference in New Issue
Block a user