Re: [twsocket] IPv6 branch updated with latest changes from trunk Rev. #631

2010-11-24 Thread Fastream Technologies
Hi Arno,

On Tue, Nov 23, 2010 at 7:33 PM, Arno Garrels arno.garr...@gmx.de wrote:

 Fastream Technologies wrote:
  Ok, somehow the packages got mixed and the defines were wrong.
  Anyway, can you try to compile the latest IPv6 package with NO_ADV_MT
  defined? It bombs in web server component!

 Thanks, it's fixed now and checked in.


I have made a comparison in Tortoise SVN by selecting the download folder
and right clicking but it did not show any changes for the Httpsrv.pas!

Regards,

SZ
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Clarification of my previous question

2010-11-24 Thread Max Terentiev
Hi Arno,

 If that happens with a fast network connection (LAN) then it's a normal
behavior in
 main, GUI thread since paint messages have less priority than messages
actually
 posted to the message queue.

Yes, it's happens on fast 1 GB Lan and very light and fast smtp server on
second PC.
No firewall or antivirus installed. Program works fine until message size is
small (2-3-5-10 kb) and start slowing down since 40-50 kb. And hangs on 1+
mb.

Is there any way to increase paint messages priority ? Or process it
manually ?
Or maybe increase SmtpCli send buffer size to 16384 or 32768 ?

In such cases you should move the SMTP task into a worker thread

Yes, current version of my main App uses SmtpCli in threads. But I want to
move it
outside threads and eliminate some problems with synchronization...

Thanx for help !

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Clarification of my previous question

2010-11-24 Thread Arno Garrels
Max Terentiev wrote:
 Hi Arno,
 
 If that happens with a fast network connection (LAN) then it's a
 normal behavior in main, GUI thread since paint messages have less
 priority than messages actually posted to the message queue.
 
 Yes, it's happens on fast 1 GB Lan and very light and fast smtp
 server on second PC.
 No firewall or antivirus installed. Program works fine until message
 size is small (2-3-5-10 kb) and start slowing down since 40-50 kb.
 And hangs on 1+ mb.
 
 Is there any way to increase paint messages priority ? 
 Or process it manually ?

Not really. One could override Application's main message loop
but I would not do that. My experience is that any attempt to
change the order in which messages are processed leads to 
problems.

 Or maybe increase SmtpCli send buffer size to 16384 or 32768 ?

It's not the socket send buffer that causes this but the fact that
older TSmtpCli sent attachments line by line, means in chunks of 
around just 78 bytes, this is fixed in newer versions.   
 
 In such cases you should move the SMTP task into a worker thread
 
 Yes, current version of my main App uses SmtpCli in threads. But I
 want to move it
 outside threads and eliminate some problems with synchronization...

Then only a bandwidth throttle works around the problem.

-- 
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] IPv6 branch updated with latest changes from trunk Rev. #631

2010-11-24 Thread Arno Garrels
Fastream Technologies wrote:
 Hi Arno,
 
 On Tue, Nov 23, 2010 at 7:33 PM, Arno Garrels arno.garr...@gmx.de
 wrote: 
 
 Fastream Technologies wrote:
 Ok, somehow the packages got mixed and the defines were wrong.
 Anyway, can you try to compile the latest IPv6 package with
 NO_ADV_MT defined? It bombs in web server component!
 
 Thanks, it's fixed now and checked in.
 
 
 I have made a comparison in Tortoise SVN by selecting the download
 folder and right clicking but it did not show any changes for the
 Httpsrv.pas!

I don't know what you are comparing. After an Update your local work
copy already contains the change. Note that Update does not silently
overwrite your own local changes, if there where conflicts TortoiseSVN
prompts you to resolve them. If there are no conflicts changes are
merged with your local copy, so you do not have to do a full checkout
to get latest changes. 

The TortoiseSVN log view is the best place to compare versions.
Right click the root checkout directory and select TortoisSVN | Show Log
in order to see the history of everything. The last change is on top
of the list. The bottom listview lists files changed with a single check-in,
just double click a file entry there and TortouseSVN will download previous
version or both and start your favorite differ. 

That also works with single files of your work copy, just right click a
single file in Windows Explorer and select TortoisSVN | Show Log or
simply TortoisSVN | Diff with previous version.

If you made local changes just select TortoisSVN | Check for Modifications
to get a list of all locally changed files or TortoisSVN | Diff for a 
single file.

-- 
Arno Garrels

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Clarification of my previous question

2010-11-24 Thread Max Terentiev
Thanx for help, Arno !

I will try v7/throttle.

 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
 Behalf Of Arno Garrels
 Sent: Wednesday, November 24, 2010 3:03 PM
 To: ICS support mailing
 Subject: Re: [twsocket] Clarification of my previous question
 
 Max Terentiev wrote:
  Hi Arno,
 
  If that happens with a fast network connection (LAN) then it's a
  normal behavior in main, GUI thread since paint messages have less
  priority than messages actually posted to the message queue.
 
  Yes, it's happens on fast 1 GB Lan and very light and fast smtp server
  on second PC.
  No firewall or antivirus installed. Program works fine until message
  size is small (2-3-5-10 kb) and start slowing down since 40-50 kb.
  And hangs on 1+ mb.
 
  Is there any way to increase paint messages priority ?
  Or process it manually ?
 
 Not really. One could override Application's main message loop but I would
not do
 that. My experience is that any attempt to change the order in which
messages are
 processed leads to problems.
 
  Or maybe increase SmtpCli send buffer size to 16384 or 32768 ?
 
 It's not the socket send buffer that causes this but the fact that older
TSmtpCli sent
 attachments line by line, means in chunks of
 around just 78 bytes, this is fixed in newer versions.
 
  In such cases you should move the SMTP task into a worker thread
 
  Yes, current version of my main App uses SmtpCli in threads. But I
  want to move it outside threads and eliminate some problems with
  synchronization...
 
 Then only a bandwidth throttle works around the problem.
 
 --
 Arno Garrels
 --
 To unsubscribe or change your settings for TWSocket mailing list please
goto
 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] IPv6 branch updated with latest changes from trunk Rev. #631

2010-11-24 Thread Fastream Technologies
Arno, Thanks for the detailed explanation.

SZ

On Wed, Nov 24, 2010 at 2:03 PM, Arno Garrels arno.garr...@gmx.de wrote:

 Fastream Technologies wrote:
  Hi Arno,
 
  On Tue, Nov 23, 2010 at 7:33 PM, Arno Garrels arno.garr...@gmx.de
  wrote:
 
  Fastream Technologies wrote:
  Ok, somehow the packages got mixed and the defines were wrong.
  Anyway, can you try to compile the latest IPv6 package with
  NO_ADV_MT defined? It bombs in web server component!
 
  Thanks, it's fixed now and checked in.
 
 
  I have made a comparison in Tortoise SVN by selecting the download
  folder and right clicking but it did not show any changes for the
  Httpsrv.pas!

 I don't know what you are comparing. After an Update your local work
 copy already contains the change. Note that Update does not silently
 overwrite your own local changes, if there where conflicts TortoiseSVN
 prompts you to resolve them. If there are no conflicts changes are
 merged with your local copy, so you do not have to do a full checkout
 to get latest changes.

 The TortoiseSVN log view is the best place to compare versions.
 Right click the root checkout directory and select TortoisSVN | Show Log
 in order to see the history of everything. The last change is on top
 of the list. The bottom listview lists files changed with a single
 check-in,
 just double click a file entry there and TortouseSVN will download previous
 version or both and start your favorite differ.

 That also works with single files of your work copy, just right click a
 single file in Windows Explorer and select TortoisSVN | Show Log or
 simply TortoisSVN | Diff with previous version.

 If you made local changes just select TortoisSVN | Check for
 Modifications
 to get a list of all locally changed files or TortoisSVN | Diff for a
 single file.

 --
 Arno Garrels


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFTPClient

2010-11-24 Thread Francois PIETTE
If the file exist on the server I do not want to overwrite the file. I 
want

to abort the transfer. Is that possible?


This is not a client issue, but a server issue. usually FTP server allows 
overwriting existing files.



Or do I need to check if the file exists before TFTPClient.Tansmit?


Yes, check if the file exist.


If I need to check first, what is the best method?


One of the list file functions.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be