English 中文(简体)
被点名的管道接回10秒?
原标题:named pipe callback takes 10 seconds?

与客户和服务器的班次相比,有 w。

当我的服务器使用回馈时,它需要超过10秒,供我的客户取回。

what is going on?

只有最简单的NetNamedPipeBled终点。

太多的法典,因此我不敢肯定这里的过去。

这会造成这么长时间。

EDIT: only first callback takes 10 seconds..

之后,它迅速运作。

谁知道为什么?

最佳回答

没有任何帮助。 最后,我还要增加一个警钟。 这发出了第一个电话,因为该系统正在boot间。

问题回答

我有同样的问题。 这在我的案件中有助于:

NetNamedPipeSecurity security = new NetNamedPipeSecurity() { Mode = NetNamedPipeSecurityMode.None };

在设定约束力时通过这一安全目标:

new NetNamedPipeBinding() { Security = security }

最初的想法来自here。 透镜是关于结核病的具有约束力的,但最终提出的解决办法似乎对我来说也是有益的。

晚间:

new NetNamedPipeBinding(NetNamedPipeSecurityMode.None)

Accidentally I found a setting that greatly improves performance of the first WCF request. The time came down from > 10 seconds to ~2 seconds.

• 建立具有约束力的转让财产,以简化服务器和客户:

var binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None);
binding.TransferMode = TransferMode.Streamed;

之后,将约束性带入“附加服务”服务器边和“信使”构造客户方。

贵国如何担任你的东道主? 第一项呼吁需要建立可能无法启动的服务。

当一演练时,使用在服务东道国建造的演播室时,这往往需要几秒钟才能发现自己。 不用说,我已经看到了10秒。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签