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
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