[twsocket] Bug in Send() ?
Hello, As you know we have a web reverse proxy. When the client (outgoing) socket returns the winsock error 10054, I want to pump answer404 to the incoming socket. Here is the code, ... OnDataSent = ConnectionDataSentErrorPages if(State == wsConnected !FSessionClosedFlag) { if(!contentLength) Send(NULL, 0); else ConnectionDataSentErrorPages(this, 0); } -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bug in Send() ?
And what's the question/problem ? -- [EMAIL PROTECTED] Author of ICS (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 twsocket@elists.org Sent: Monday, March 19, 2007 8:48 AM Subject: [twsocket] Bug in Send() ? Hello, As you know we have a web reverse proxy. When the client (outgoing) socket returns the winsock error 10054, I want to pump answer404 to the incoming socket. Here is the code, ... OnDataSent = ConnectionDataSentErrorPages if(State == wsConnected !FSessionClosedFlag) { if(!contentLength) Send(NULL, 0); else ConnectionDataSentErrorPages(this, 0); } -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bug in Send() ?
In what conditions should we assume that no ondatasent will be called after send()? - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, March 19, 2007 2:13 PM Subject: Re: [twsocket] Bug in Send() ? And what's the question/problem ? -- [EMAIL PROTECTED] Author of ICS (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 twsocket@elists.org Sent: Monday, March 19, 2007 8:48 AM Subject: [twsocket] Bug in Send() ? Hello, As you know we have a web reverse proxy. When the client (outgoing) socket returns the winsock error 10054, I want to pump answer404 to the incoming socket. Here is the code, ... OnDataSent = ConnectionDataSentErrorPages if(State == wsConnected !FSessionClosedFlag) { if(!contentLength) Send(NULL, 0); else ConnectionDataSentErrorPages(this, 0); } -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bug in Send() ?
Please do notice that there are two sockets: one server and one client and the error on client/outgoing socket affects the server socket (somehow). Regards, SZ - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, March 19, 2007 2:13 PM Subject: Re: [twsocket] Bug in Send() ? And what's the question/problem ? -- [EMAIL PROTECTED] Author of ICS (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 twsocket@elists.org Sent: Monday, March 19, 2007 8:48 AM Subject: [twsocket] Bug in Send() ? Hello, As you know we have a web reverse proxy. When the client (outgoing) socket returns the winsock error 10054, I want to pump answer404 to the incoming socket. Here is the code, ... OnDataSent = ConnectionDataSentErrorPages if(State == wsConnected !FSessionClosedFlag) { if(!contentLength) Send(NULL, 0); else ConnectionDataSentErrorPages(this, 0); } -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bug in Send() ?
Fastream Technologies wrote: In what conditions should we assume that no ondatasent will be called after send()? It will be called, even if you call Send() with NULL-data. However, if still unsent data is in the buffer it will be called delayed after all data has been sent. It won't be called if during real sending an winsock error happend, in this case SessionClosed is called immediately. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, March 19, 2007 2:13 PM Subject: Re: [twsocket] Bug in Send() ? And what's the question/problem ? -- [EMAIL PROTECTED] Author of ICS (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 twsocket@elists.org Sent: Monday, March 19, 2007 8:48 AM Subject: [twsocket] Bug in Send() ? Hello, As you know we have a web reverse proxy. When the client (outgoing) socket returns the winsock error 10054, I want to pump answer404 to the incoming socket. Here is the code, ... OnDataSent = ConnectionDataSentErrorPages if(State == wsConnected !FSessionClosedFlag) { if(!contentLength) Send(NULL, 0); else ConnectionDataSentErrorPages(this, 0); } -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bug in Send() ?
Thanks! - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, March 19, 2007 3:16 PM Subject: Re: [twsocket] Bug in Send() ? Fastream Technologies wrote: In what conditions should we assume that no ondatasent will be called after send()? It will be called, even if you call Send() with NULL-data. However, if still unsent data is in the buffer it will be called delayed after all data has been sent. It won't be called if during real sending an winsock error happend, in this case SessionClosed is called immediately. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, March 19, 2007 2:13 PM Subject: Re: [twsocket] Bug in Send() ? And what's the question/problem ? -- [EMAIL PROTECTED] Author of ICS (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 twsocket@elists.org Sent: Monday, March 19, 2007 8:48 AM Subject: [twsocket] Bug in Send() ? Hello, As you know we have a web reverse proxy. When the client (outgoing) socket returns the winsock error 10054, I want to pump answer404 to the incoming socket. Here is the code, ... OnDataSent = ConnectionDataSentErrorPages if(State == wsConnected !FSessionClosedFlag) { if(!contentLength) Send(NULL, 0); else ConnectionDataSentErrorPages(this, 0); } -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be