msnews.microsoft.com
11/5/2004 9:45:00 PM
"Robert Jordan" <robertj@gmx.net> wrote in message
news:cmgk2c$t3e$02$1@news.t-online.com...
> Hi,
>
> > Thank you for the reply. I have fixed it by set "__CustomErrorsEnabled"
in
> > message header to false before call ProcessMessage. This is the part of
my
> > code:
> > msg.Headers["__CustomErrorsEnabled"] = false;//To pass all exceptions to
> > client
> >
> > ServerChannelSinkStack stack = new ServerChannelSinkStack();
> >
> > stack.Push(this,msg);
> >
> > ServerProcessing proc =
> > _nextSink.ProcessMessage(stack,null,msg.Headers,msg.Body,out
responseMsg,
> > out responseHeaders,out responseStream);
>
> That's the same as
>
> <system.runtime.remoting>
> <customErrors mode="off" />
>
> Do you have this setting in your server's config too?
No, I don't have a config file. By my test, this setting in config works for
tcp and http only, for custom channel, you have to do it like my code.
Furthermore, RemotingConfigure.Configure() leads to remoting on Frame 1.1
leaking memory in [STMThread] mode.
> > Another thing I found is tcp channel has better performance than my
socket
> > channel, do you have experience to improve it?
>
> Indeed, the implementation seems to be very smart.
>
> Do you really need more performance? A bidirectional channel is intended
> to be used across firewals, isn't it?
>
Yes, it is intended to across firewalls and I really need more performance.
Now the response time is almost doubled comparing to tcp channel.
> bye
> Rob