Why is my overlapped WriteFile blocking?
-
I have a named pipe client that is using overlapped I/O on a handle registered with an I/O completion port. There was a bug in the server that was causing it to never read the named pipe, which in turn caused me to notice that the overlapped WriteFile call in the client was getting blocked. My overlapped ReadFile calls are not being blocked. After fixing the server bug, it appears that the WriteFile calls are always completing before WriteFile returns. I never seem to get ERROR_IO_PENDING back on a write. The write completion events ARE being properly posted to the IOCP. I did open the named pipe with FILE_FLAG_OVERLAPPED. (If I hadn't, I don't think the overlapped reads would be working properly.) Any suggestions? -------- There are 10 types of people in this world. Those who know binary and those who don't.