Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
; - Original Message - > > From: "Fastream Technologies" <[EMAIL PROTECTED]> > > To: "ICS support mailing" > > Sent: Wednesday, November 22, 2006 9:24 AM > > Subject: Re: [twsocket] TWSocket sync send problem within ISAPI > > > &

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
ED] > http://www.overbyte.be > > - Original Message - > From: "Fastream Technologies" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Wednesday, November 22, 2006 9:24 AM > Subject: Re: [twsocket] TWSocket sync send problem within ISAPI >

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Francois Piette
AM Subject: Re: [twsocket] TWSocket sync send problem within ISAPI > Hello, > > Could you look at the new code below: > > procedure TWebConnection.ConnectionDataSentISAPI(Sender : TObject; > Error : WORD); > begin > sendError := Error; > sendComplete :=

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
Also, function TWebConnection.SendSync(Data: String): boolean; is never called from the modified DXISAPI. It is just for I believe the HEAD command. (I know Length(Data) can return wrong info.) Best Regards, SZ On 11/22/06, Fastream Technologies <[EMAIL PROTECTED]> wrote: > Hello, > > Could you

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
Hello, Could you look at the new code below: procedure TWebConnection.ConnectionDataSentISAPI(Sender : TObject; Error : WORD); begin sendError := Error; sendComplete := true; end; function TWebConnection.SendSync(Data: String): boolean; begin Result := SendSync(PChar(Data

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Francois PIETTE
> Thanks for the pointer. The error is 10035. As you can see in the docs, it is WSAEWOULDBLOCK. This not a real error in a non-blocking environment. It just mean the winsock call would block to execute the task and non-blocking mode has been selected. -- Contribute to the SSL Effort. Visit http

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Fastream Technologies
S (Internet Component Suite, freeware) > Author of MidWare (Multi-tier framework, freeware) > http://www.overbyte.be > > - Original Message - > From: "Fastream Technologies" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Tuesday, Novembe

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Fastream Technologies
I do not think the issue understood the same here and there. Why is the Count = -1 then? What should one do to have the sync method work? (I have changed the mode to sync, I hope you noticed. See the code I posted in my __first__ email.) Regards, SZ On 11/21/06, Francois PIETTE <[EMAIL PROTECTED

[twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Fastream Technologies
Hello, In our ISAPI server, if the request is detected to be of a ISAPI interpreter one, we run the routine, OldDataAvailable = FOnDataAvailable; OldSendData = FOnSendData; OldDataSent = FOnDataSent; FOnDataAvailable = NULL; FOnSendData = NULL; FOnDataSent = NULL; int iMode = 0; WSocket_ioctlso

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Francois PIETTE
>I do not think the issue understood the same here and there. Why is > the Count = -1 then? When you call Send, passing a number of bytes and send is not able to send it without blocking and non-blocking mode is active, then send returns -1 to tell you it can't do what you asked. Nothing is sent

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Fastream Technologies
I want to add: 1) ISAPI must have sync sockets 2) when I go through breakpoints, no -1's are returned and the sample jpg returned by the ISAPI extension works perfectly. (no corruption) Best Regards, SZ On 11/21/06, Fastream Technologies <[EMAIL PROTECTED]> wrote: > Hello, > > In our ISAPI serv

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Francois Piette
quot; <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Tuesday, November 21, 2006 1:09 PM Subject: [twsocket] TWSocket sync send problem within ISAPI > Hello, > > In our ISAPI server, if the request is detected to be of a ISAPI > interpreter one, we