Completion port & winsock problem.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Introduction:
*************************
I am developing communication infrastructure for a streaming video server,
to achieve optimal performance I use IO Completion ports & a thread pool in
combination with winsock MsAPI ( e.g. ConnectEx, AcceptEx, … ), sending data
through sockets is done with Read/WriteFile.

The problem:
*************************
Upon IO Completion of any kind ( e.g. Socket Connection completion , socket
data reception , … ) I get double completion notifications, in other words:
GetQueuedCompletionStatus returns twice for the same IO operation…

I guess I am not the first encountered this problem…
Does someone have a clue what may cause this problem?

Any pointer, comment or remark would be appreciated.

Naddav
http://www.sophin.com
 
Nadav said:
The problem:
*************************
Upon IO Completion of any kind ( e.g. Socket Connection completion ,
socket
data reception , . ) I get double completion notifications, in other
words:
GetQueuedCompletionStatus returns twice for the same IO operation.

I guess I am not the first encountered this problem.

I don't know why you think that.
Does someone have a clue what may cause this problem?

Any pointer, comment or remark would be appreciated.

You will probably need to post the smallest snippet of code that you can get
to exhibit the problem in a more appropriate group, e.g.

microsoft.public.win32.programmer.kernel

Regards,
Will
 
Back
Top