[twsocket] Error 10058 when not sending?

2006-11-28 Thread Jack
Hello all, I have a server that works like a port forwarder to an HTTP proxy. IE connects to my server, and my server forward traffics to a remove HTTP proxy. It works well most of the times but occasionally IE gets corrupt data. To debug this, I wrote a dummy client that sends 50 concurrent GET r

Re: [twsocket] Error 10058 when not sending?

2006-11-28 Thread Clay Shannon
<> FWIW: WSAESHUTDOWN 10058 Cannot send after socket shutdown The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If the reader of this message is not the intended recipient, you are he

Re: [twsocket] Error 10058 when not sending?

2006-11-29 Thread Wilfried Mestdagh
Hello Jack, I think you have to check your event handlers for exception. BGException is fired when exception comes from the message pump. But most event handlers are fired from the message pump as well. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestd

Re: [twsocket] Error 10058 when not sending?

2006-11-29 Thread Jack
Hello Wilfried, Thanks for your reply. Do you mean I should check the ErrCode in the event handlers, if none-zero, check LastError? When will BGException be fired exactly? I suppose it could happen even when no event handler is called? Jack > I think you have to check your event handlers for exc

Re: [twsocket] Error 10058 when not sending?

2006-11-30 Thread Wilfried Mestdagh
Hello Jack, > Do you mean I should check the ErrCode in the event handlers No check for exceptions. BGException is fired if exception comes from the middle of nowere, that is the message pump. But many events are called from within the message pump. This means if you have an exception in your co