|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: TOUZEAU DAVID (david.touzeau
fr.kaspersky.com)
Date: Thu Oct 11 2007 - 16:46:36 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Many thanks for answer but
my policy-server send now action=dunno + CRLF + CRLF but the same
problem appears..
here it is an example of code :
procedure TTCPEchoThrd.Execute;
const
CR = #$0d;
LF = #$0a;
CRLF = CR + LF;
var
s: string;
LOGS:TLOgs;
StringToSend:string;
begin
sock:=TTCPBlockSocket.create;
try
Sock.socket:=CSock;
Sock.GetSins;
with sock do
begin
repeat
if terminated then break;
s := RecvPacket(60000);
if lastError<>0 then begin
break;
end;
LOGS.logs('artica-policy:: PolicySocketThread:: Recieve....'
+CRLF+ s);
//send the response to postfix
sock.SendString('action=dunno'+CRLF+CRLF);
if lastError<>0 then break;
until false;
end;
finally
sock.SizeRecvBuffer:=2000;
sock.CloseSocket;
FreeAndNil(sock);
end;
end;
Wietse Venema a écrit :
> TOUZEAU DAVID:
>
>> For testing, my process send just
>> action=dunno + CRLF
>> but it didn't working, postfix wait and wait and keep connected.
>>
>
> This is wrong.
>
> The server should send:
>
> action=dunno CRLF
> CRLF
>
> This is actually documented.
>
> Wietse
>
>
>> I have tried many ways but the result is the same :
>>
>> dunno +CRLF
>> ok + CRLF
>> action=ok + CRLF
>> action=dunno + CRLF
>>
>>
>> did i miss something ????
>>
>>
>>
>>
>>
>> --
>> David Touzeau -------------------------- Linux Ubuntu 7.04 feisty
>> FreePascal-Lazarus,perl,delphi,php artica for postfix management console
>> (http://www.artica.fr) icq:160018849
>>
>>
>>
>
>
>
>
--
David Touzeau -------------------------- Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,delphi,php artica for postfix management console
(http://www.artica.fr) icq:160018849
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]