1

Topic: How works _IOCompletionCallback?

All greetings! By operation with network interfaces, for example, by means of TcpListener, by means of old kind Begin/End AcceptTcpClient, suspicious enough stack is formed: System.Threading.WaitHandle.InternalWaitOne (System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean) System. Threading. WaitHandle. WaitOne (Int32, Boolean) MyListener. OnAcceptConnection (System. IAsyncResult) System. Net. LazyAsyncResult. Complete (IntPtr) System.Threading.ExecutionContext.RunInternal (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object, Boolean) System. Threading. ExecutionContext. Run (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object, Boolean) System. Threading. ExecutionContext. Run (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object) System. Net. ContextAwareResult. Complete (IntPtr) System.Net.LazyAsyncResult.ProtectedInvokeCallback (System. Object, IntPtr) System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback (UInt32, UInt32, System. Threading. NativeOverlapped *) System.Threading._IOCompletionCallback.PerformIOCompletionCallback (UInt32, UInt32, System. Threading. NativeOverlapped *) GCFrame DebuggerU2MCatchHandlerFrame Confuses PerformIOCompletionCallback. Whether it means, what all remained code as will be fulfilled in IOCP-trede which in system it is not dense, and I will tastefully shoot to myself at a foot it here WaitOne?

2

Re: How works _IOCompletionCallback?

Hello, LWhisper, you wrote: LW> Confuses PerformIOCompletionCallback. Whether LW> it Means, what all remained code as will be fulfilled in IOCP-trede which in system it is not dense, and I will tastefully shoot to myself at a foot it here WaitOne? There Is No Thread... <<RSDN@Home 1.3.108 alpha 5 rev. 56>>

3

Re: How works _IOCompletionCallback?

Hello, _Raz _, you wrote: _R _> There Is No Thread You gave failing response. I do not ask, as works IOCP, it is clear. My question concerns exceptional _IOCompletionCallback in realities.NET. And there just is quite to itself live . And at me only a question - from what it groups. From  a pool which it is possible  or from a pool which rakes IOCP?

4

Re: How works _IOCompletionCallback?

Hello, LWhisper, you wrote: LW> All greetings! LW> by operation with network interfaces, for example, by means of TcpListener, by means of old kind Begin/End AcceptTcpClient, suspicious enough stack is formed: LW> LW>System.Threading.WaitHandle.InternalWaitOne (System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean) LW> System. Threading. WaitHandle. WaitOne (Int32, Boolean) LW> MyListener. OnAcceptConnection (System. IAsyncResult) LW> System. Net. LazyAsyncResult. Complete (IntPtr) LW>System.Threading.ExecutionContext.RunInternal (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object, Boolean) LW> System. Threading. ExecutionContext. Run (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object, Boolean) LW> System. Threading. ExecutionContext. Run (System. Threading. ExecutionContext, System. Threading. ContextCallback, System. Object) LW>System.Net.ContextAwareResult.Complete (IntPtr) LW>System.Net.LazyAsyncResult.ProtectedInvokeCallback (System. Object, IntPtr) LW>System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback (UInt32, UInt32, System. Threading. NativeOverlapped *) LW>System.Threading._IOCompletionCallback.PerformIOCompletionCallback (UInt32, UInt32, System. Threading. NativeOverlapped *) LW> GCFrame LW> DebuggerU2MCatchHandlerFrame LW> LW> Confuses PerformIOCompletionCallback. Whether LW> it Means, what all remained code as will be fulfilled in IOCP-trede which in system it is not dense, and I will tastefully shoot to myself at a foot it here WaitOne? Here not bad speaks - esteem all answers. Like write that as required the environment (runtime-> OS) will create still IOCP flows, but generally with any  flow WaitOne not the best idea.

5

Re: How works _IOCompletionCallback?

Hello, Sharov, you wrote: S> Here not bad speaks - esteem all answers. Like write that as required the environment (runtime-> OS) will create S> still IOCP flows, but generally with any  flow WaitOne not the best idea. Judging by WinDBG, it is valid IOCP'. In  hang 800/800. A limit did not reach, but each creation of a new flow occupies time.

6

Re: How works _IOCompletionCallback?

Hello, LWhisper, you wrote: LW> Judging by WinDBG, it is valid IOCP'. In  hang 800/800. A limit did not reach, but each creation of a new flow occupies time. Well, i.e. really locks there to arrange not so, received \transferred and no more.