E
EmeraldShield
I have been fighting a problem for about two weeks and I can't seem to find
any info on it. Any help is greatly appreciated.
We have an ASYNC I/O system for email receptions (in bound email).
This service has been working very well for years. I upgraded it to Dot Net
2 / VS 2005 and moved over to the Async I/O model for better performance.
It works great.
BUT, every now and then I will get a corrupt buffer. The first 4 bytes of a
connection will be XXXX instead of HELO or EHLO (Even though they sent one
of those two commands). It is ALWAYS XXXX.
This is the call inside the AsyncCallback for the read operation:
mystring = Encoding.UTF8.GetString(sp.ReadInBuffer, 0, sp.ReadInBufferSize);
I cannot get it to repeat in a pattern that I could actually sit in a
debugger and watch it.
So I added a special case in my code if it finds XXXX I treat it like hello,
but that is a hack.
Very odd.
any info on it. Any help is greatly appreciated.
We have an ASYNC I/O system for email receptions (in bound email).
This service has been working very well for years. I upgraded it to Dot Net
2 / VS 2005 and moved over to the Async I/O model for better performance.
It works great.
BUT, every now and then I will get a corrupt buffer. The first 4 bytes of a
connection will be XXXX instead of HELO or EHLO (Even though they sent one
of those two commands). It is ALWAYS XXXX.
This is the call inside the AsyncCallback for the read operation:
mystring = Encoding.UTF8.GetString(sp.ReadInBuffer, 0, sp.ReadInBufferSize);
I cannot get it to repeat in a pattern that I could actually sit in a
debugger and watch it.
So I added a special case in my code if it finds XXXX I treat it like hello,
but that is a hack.
Very odd.