Re: [twsocket] SMTP error translation

2009-07-14 Thread Arno Garrels
x x wrote:
 In 'OnRequestDone' for the SMTP Client, I would like to translate the
 meaning of any error, instead of just having the error integer. How
 can 
 this be done?

uses
(OverbyteIcs)WSocket;

if (Error  0) and  (Error  1) then
Display(SmtpClient.ErrorMessage)
else
Display(WSocketErrorDesc(Error));

--
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


[twsocket] Ipv6

2009-07-14 Thread Paul

Any plans yet ?
I got my first complaint from a customer

Paul

--
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

2009-07-14 Thread Francois Piette
 Any plans yet ?

Not yet.
btw: Does OpenSSL support IPv6 ?
--
francois.pie...@overbyte.be
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
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


[twsocket] header too long HTTP_MIME_TOO_LONG

2009-07-14 Thread wayne forrest
I am receiving an error: header too long HTTP_MIME_TOO_LONG

when I call my php file, from HttpCli,

*How shoud one I get the vars from php?*

I think that there is some kind of limit in the amount of data that can fit
into the header.

$alist does hold a long list of SQL data.

?php
session_start();
header(SQL_RESULTS: SQL_RESULTS=$alist);
?


-- 
C: 076 337 4368
T: 021 880 2037
F: 021 880 2530
--
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] header too long HTTP_MIME_TOO_LONG

2009-07-14 Thread Francois PIETTE

I am receiving an error: header too long HTTP_MIME_TOO_LONG
when I call my php file, from HttpCli,
*How shoud one I get the vars from php?*


Not sure about what you mean by this sentence...

I think that there is some kind of limit in the amount of data that can 
fit

into the header.
$alist does hold a long list of SQL data.
?php
session_start();
header(SQL_RESULTS: SQL_RESULTS=$alist);
?


Why would you send your SQL data in the header ? You should probably send it 
in the document.


--
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


[twsocket] Async in 1GBit LAN, high CPU?

2009-07-14 Thread Arno Garrels
Hi,

One of my customers reports 99% CPU use and taskmanager claims 
Application Not responding.
Has anybody seen such high CPU use on 1 GBit LANs?
I see 50-60% in my 100 MBit LAN as well. SMTP stuff is done in a
worker thread with no logging during Data transfer and the GUI 
remains fully responsive, so IMO no 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] Async in 1GBit LAN, high CPU?

2009-07-14 Thread Francois PIETTE

One of my customers reports 99% CPU use and taskmanager claims
Application Not responding.
Has anybody seen such high CPU use on 1 GBit LANs?
I see 50-60% in my 100 MBit LAN as well. SMTP stuff is done in a
worker thread with no logging during Data transfer and the GUI
remains fully responsive, so IMO no problem.


An application which is network bound on a 100 Mbps LAN may become CPU bound 
with a 1GBps LAN. Maybe this is what is happening.


This is for such kind of application that I introduced throttling (bandwidth 
control) in the HHTP component so that not all CPU is consumed because the 
network has a so high thruput.


--
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


Re: [twsocket] Async in 1GBit LAN, high CPU?

2009-07-14 Thread Arno Garrels
Francois PIETTE wrote:
 One of my customers reports 99% CPU use and taskmanager claims
 Application Not responding.
 Has anybody seen such high CPU use on 1 GBit LANs?
 I see 50-60% in my 100 MBit LAN as well. SMTP stuff is done in a
 worker thread with no logging during Data transfer and the GUI
 remains fully responsive, so IMO no problem.
 
 An application which is network bound on a 100 Mbps LAN may become
 CPU bound with a 1GBps LAN. Maybe this is what is happening.
 
 This is for such kind of application that I introduced throttling
 (bandwidth control) in the HHTP component so that not all CPU is
 consumed because the network has a so high thruput.

That makes me think we need a throttle at the root (TWSocket).
Just switched the roles, installed the mail server on a slow(er) box
and ran the TSmtpCli application on the fast(er) one. CPU use of the 
TSmtpCli application was max 35% whereas the other way around 60%.

--
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] Async in 1GBit LAN, high CPU?

2009-07-14 Thread Francois PIETTE

That makes me think we need a throttle at the root (TWSocket).


Would be interesting.


Just switched the roles, installed the mail server on a slow(er) box
and ran the TSmtpCli application on the fast(er) one. CPU use of the
TSmtpCli application was max 35% whereas the other way around 60%.


Try setting the network speed to 10 Mbps (you should be able to set the 
speed in the hardware config). I guess you'll see a dramatic drop in CPU 
usage because your app will be really network bound. If this is really the 
case, the reverse, that is using 1Gbps, will makes your app CPU bound and 
this would confirm my analysis.


--
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


Re: [twsocket] SMTP error translation

2009-07-14 Thread x x
Thank you for the reply.

I get the error SMTP component not ready when I try to use
WSocketErrorDesc(Error)?


-Original Message- 
From: Arno Garrels [arno.garr...@gmx.de]
Sent: 7/14/2009 1:03:54 AM
To: twsocket@elists.org
Subject: Re: [twsocket] SMTP error translation

x x wrote:
 In 'OnRequestDone' for the SMTP Client, I would like to translate the
 meaning of any error, instead of just having the error integer. How
 can 
 this be done?

uses
 (OverbyteIcs)WSocket;

if (Error  0) and (Error  1) then
 Display(SmtpClient.ErrorMessage)
else
 Display(WSocketErrorDesc(Error));

--
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
.
 


span id=m2wTlpfont face=Arial, Helvetica, sans-serif size=2 
style=font-size:13.5px___BRGet
 the Free email that has everyone talking at a href=http://www.mail2world.com 
target=newhttp://www.mail2world.com/abr  font color=#99Unlimited 
Email Storage #150; POP3 #150; Calendar #150; SMS #150; Translator #150; 
Much More!/font/font/span
--
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


[twsocket] Ftp freezing

2009-07-14 Thread New Era
I am using tftpcli in passive mode to upload files, while uploading a file, for 
some reason if a connection problem occurs in the middle of the transfer, the 
program freezes ,

to overcome this problem I thought that I can,

- Create   a thread to make the ftp transfer 
- Assign OnProgress event, and in this event handler PostMessage to the main 
application window,
- In main thread if message from thread does not come for long time, kill the 
thread and restart the uploading by creating another thread instance.

Is this approach is a proper solution or what would you suggest?
Best Regards,



  
--
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


[twsocket] Simple SMTP text emails rejected for virus or spam

2009-07-14 Thread Hoby Smith
Hello, everyone...

Any input on this would be really appreciated.  

I have a processing service that generates very simple SMTP notifications to
customers.  Basically, these are system alerts about item due dates, etc.  I
am using ICS TSyncSMTPCli v2.5 to send the messages with.  I simply set the
envelope parameters and message, then deliver it to the SMTP server.  VERY
SIMPLE.  I have used this same pattern in numerous apps for years and never
had a problem.

A recent client signed up for the service who is with GoDaddy.  For some
very ANNOYING reason, GoDaddy doesn't like something about the emails I am
sending him.  It rejects them with 554 The message was rejected because it
contains prohibited virus or spam content.  This is of course absurd, since
they are text format emails with one or two sentences of text.  I have tried
several different content changes, including just sending, this is a test.
All bounce back with this error.

I just got off the phone with a tech there who is rather clueless.  My IP /
host is not blocked and they can't tell me why it is rejecting the emails.

So, currently, my best guess is that something in the way I am creating the
envelope is flagging their spam/virus filter.  I have not had this problem
with any other SMTP servers, but that doesn't necessarily mean anything.  I
am open to the possibility that I am doing something they don't like, but I
have no clue what that could be.  My header is so simple, I am at a loss as
to what they might not like. 

Has anyone ever encountered this issue?  Any thoughts?  I am stumped.  I
have been doing this for years without problem.  :(

Here is a snippet of code from where I set the email content parameters.
Maybe I am doing something odd?  Maybe they don't like the ReplyTo not being
the sender or something?  FYI, smtpMain is the TSyncSMTPCli component.

*
Code snippet
*
  smtpMain.FromName   := fFromAddr;
  smtpMain.HdrReplyTo := fReplyTo;
  smtpMain.HdrFrom:= fFromName;
  smtpMain.HdrTo  := aEmail;
  smtpMain.HdrCc  := '';
  smtpMain.HdrSubject := aSubject;
  smtpMain.HdrSender  := fFromAddr;

  smtpMain.RcptName.Clear;
  smtpMain.RcptNameAdd(smtpMain.HdrTo,'','');

  with smtpMain.MailMessage do
  begin
Clear;

if not fNoPrelim then
begin
  Add('Per your request, we are notifying you of the following');
  Add('event:');
  Add('');
  Add('');
  Add('Account name: ' +
qryNotifyHistory.FieldByName('acct_ref').AsString);
  Add(
qryNotifyHistory.FieldByName('proj_label').AsString +
': ' +
qryNotifyHistory.FieldByName('proj_title').AsString);
  Add('');
end;

Add(aMessageText);

if not fNoFooter then
begin
  Add('');
  Add('');
  Add('***');
  Add('Note: This is an automatically generated email.  Replies');
  Add('to this email will not be read.');
  Add('***');
end;
  end;

  SetTask('Delivering SMTP message...');
  SetTaskProgress(33);

  if not smtpMain.MailSync then
  begin
Result := False;
LogText(0, 'Err: ' + smtpMain.ErrorMessage, 'Failed');
exit;
  end;

*
End Code snippet
*

--
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