Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Named Pipe is losing data!!!

I'm moving data from an ISAPI filter to an out of proc server using Named Pipes. I've been losing data and have narrowed it down to the Named Pipe mechanism.



I have looked all through the documentation and online and nobody else seems to have experienced (or at least documented) losing random pieces of data from within a stream of bytes passed via a NP.



It's driving me up the wall, personally, so I figured I would post a message to see if anyone else might know what I should check for.



My create looks like this:

if ((PipeHandle = CreateNamedPipe("\\.\PIPE\DataPipe",

PIPE_ACCESS_DUPLEX, PIPE_READMODE_BYTE,

NUM_PIPES, 0, 3072, 20, NULL)) == INVALID_HANDLE_VALUE){ blah blah blah...



I've changed wait time and inbuffer size around a few times. No difference.





The client call is like this:

if ((PipeHandle = CreateFile(PIPE_NAME,

GENERIC_WRITE, 0,

(LPSECURITY_ATTRIBUTES) NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,

(HANDLE) NULL)) == INVALID_HANDLE_VALUE)

{



It works up until I start sending a LOT of data (processing over 100 messages/sec from IIS). But everyone claims this is a reliable IPC mechanism under windows so I don't see why I'm losing stuff. Any help would be a appreciated.



-Me

cwright@gobcg.com


Sign In or Register to comment.