Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Francois Piette
You should call Shutdown to gracefully close the connection. If you want to call close, do it using an intermediate custom message. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Mess

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Olivier Sannier
Isn't it what CloseDelayed is meant for? Francois Piette wrote: > You should call Shutdown to gracefully close the connection. > If you want to call close, do it using an intermediate custom message. > -- > [EMAIL PROTECTED] > Author of ICS (Internet Component Suite, freeware) > Author of MidWare

Re: [twsocket] New ICS-V6 beta available - updated for RAD Studio 2007

2007-10-03 Thread Arno Garrels
MimeUtils.pas must be exchanged since functions DoFileEncQuotedPrintable and DoTextFileReadNoEncoding inroduce bugs. Though DoTextFileReadNoEncoding is not currently used but instead Bjørnar's code. Bjørnar's code is much faster BUT it adds an additional CRLF at the end of an unencoded attachment

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Francois Piette
> > You should call Shutdown to gracefully close the connection. > > If you want to call close, do it using an intermediate custom message. > Isn't it what CloseDelayed is meant for? Yes, of course ! -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Arno Garrels
Olivier Sannier wrote: > Isn't it what CloseDelayed is meant for? CloseDelayed won't reenter the event, however to ensure that last data packets are received properly before the socket is closed call ShutDown() for a gracefull close in DataSent event handler. -- Arno Garrels [TeamICS] http://www.

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread DZ-Jay
On Oct 3, 2007, at 03:53, Arno Garrels wrote: > CloseDelayed won't reenter the event, however to ensure that > last data packets are received properly before the socket is > closed call ShutDown() for a gracefull close in DataSent event > handler. Thanks all for the responses. I have one more q

Re: [twsocket] Lost handles using TWSocket.

2007-10-03 Thread Wilfried Mestdagh
Hello Mitchell, Yes there should be a Connect (or Listen) before sending something. UDP is not session related but it is the way TWSocket is written. But for UDP you dont have to wait for an event, you can call Connect and in next line of code you can call SendStr. Also it is OK to Release the TWS

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Wilfried Mestdagh
Hello DZ-Jay, > Close() ultimately calls Shutdown(1) -- so wouldn't it have the same > effect? As I recall not exacly the same. Close calls Shutdown(1) and close the socket. If you call Shutdown(1) the socket will not be immediatly close, but if there is still some data it will be send, and the o

[twsocket] What is this error in Tsslhttpcli.OnRequestDone?

2007-10-03 Thread Fastream Technologies
Hello, I am trying to upgrade all our projects to BCB2007 and now face a problem in webstresstester: void __fastcall TesterThread::HTTPClientRequestDone(TObject *Sender, THttpRequest RqType, WORD ErrCode) { if(ErrCode) mainForm->incResponseDropped(); // here Errcode always "1". Why? How come?

[twsocket] Does anybody know a both chunked-encoded and GZipped site on the net to test THttpCli?

2007-10-03 Thread Fastream Technologies
TIA, SZ -- 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] TWSocketThrdServer - Bogus OnDataAvailabletriggeredwhen Closed.

2007-10-03 Thread Arno Garrels
Wilfried Mestdagh wrote: > Hello DZ-Jay, > >> Close() ultimately calls Shutdown(1) -- so wouldn't it have the same >> effect? > > As I recall not exacly the same. Close calls Shutdown(1) and close the > socket. If you call Shutdown(1) the socket will not be immediatly > close, but if there is sti

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailabletriggeredwhen Closed.

2007-10-03 Thread Wilfried Mestdagh
Hello Arno, > I think the problem is that in TCustomWSocket.InternalClose the message > pump is called I think you right about that. As I recall CloseDelayed was introduced if it was needed to Close from in one of the events. Most likely that was the reason. --- Rgds, Wilfried [TeamICS] http:

Re: [twsocket] New ICS-V6 beta available - updated for RAD Studio 2007

2007-10-03 Thread Bjørnar Nielsen
For my use, it's not a problem with the extra CRLF at the end. I would like to see it without the extra CRLF, but I don't have time to fix this now. Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels Sent: 3. oktober 2007 09:45 T

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailabletriggeredwhen Closed.

2007-10-03 Thread [EMAIL PROTECTED]
> > Close() ultimately calls Shutdown(1) -- so wouldn't it have the same > > effect? > > As I recall not exacly the same. Close calls Shutdown(1) and close the > socket. If you call Shutdown(1) the socket will not be immediatly close, > but if there is still some data it will be send, and the othe

Re: [twsocket] TWSocketThrdServer - BogusOnDataAvailabletriggeredwhen Closed.

2007-10-03 Thread [EMAIL PROTECTED]
> > I think the problem is that in TCustomWSocket.InternalClose the message > > pump is called > > I think you right about that. As I recall CloseDelayed was introduced if > it was needed to Close from in one of the events. Most likely that was > the reason. So should I call CloseDelayed() or

Re: [twsocket] TWSocketThrdServer - BogusOnDataAvailabletriggeredwhen Closed.

2007-10-03 Thread Wilfried Mestdagh
Hello dz, > Client.SendLine('-ERR Closing connection.'); > Client.Shutdown(1); // Or CloseDelayed() ...? Yes. This way you are sure that the string will be received by the other end. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz --

[twsocket] AGAIN: New ICS-V6 beta available - updated for RAD Studio 2007

2007-10-03 Thread Francois PIETTE
Sorry, but there was a problem in SMTP component with yesterday's version. Uploaded fixed version today. Thanks to Arno for pointing this issue out. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.ov

Re: [twsocket] New ICS-V6 beta available - updated for RADStudio 2007

2007-10-03 Thread Francois PIETTE
OK. For now, I'll use Arno's version. Updated now. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Bjørnar Nielsen" <[EMAIL PROTECTED]> To: "'ICS sup

Re: [twsocket] Using SourceForge for ICS ?

2007-10-03 Thread Maurizio Lotauro
Scrive Francois PIETTE <[EMAIL PROTECTED]>: > Hello Guys ! Hello! > I'm considering the option of pushing ICS to SourceForge and I would like to > have your opinion. > Does someone already have a real experience of SourceForge as a developper ? Sorry, no. > The first decision is should I selec

Re: [twsocket] Using SourceForge for ICS ?

2007-10-03 Thread Arno Garrels
Maurizio Lotauro wrote: > I see that jcl has switched from CVS to SVN, so probably it will be > better to choice SVN. Yes, and TortoiseSVn looks like a very cool and powerfull tool on the first glance! -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscr

Re: [twsocket] Using SourceForge for ICS ?

2007-10-03 Thread [EMAIL PROTECTED]
> Yes, and TortoiseSVn looks like a very cool > and powerfull tool on the first glance! It is. I don't need nor care about BDS integration anymore; I do all manipulations of the source files through the Explorer shell using TortoiseSVN. It even overlays the folder/file icons with symbols of the

Re: [twsocket] Using SourceForge for ICS ?

2007-10-03 Thread Olivier Sannier
Arno Garrels wrote: > Maurizio Lotauro wrote: > > >> I see that jcl has switched from CVS to SVN, so probably it will be >> better to choice SVN. >> > > Yes, and TortoiseSVn looks like a very cool and powerfull tool on the > first glance! Trust me, the more you use, the better it gets. Bee