From clamav-devel-bounces@lists.clamav.net  Thu Jan 27 14:52:08 2005
Return-Path: <clamav-devel-bounces@lists.clamav.net>
X-Original-To: list@krisma.oltrelinux.com
Delivered-To: list@krisma.oltrelinux.com
Received: from localhost (krisma [127.0.0.1])
	by mail.oltrelinux.com (Postfix) with ESMTP id 4A2F311AE6E
	for <list@krisma.oltrelinux.com>; Thu, 27 Jan 2005 14:52:08 +0100 (CET)
Received: from mail.oltrelinux.com ([127.0.0.1])
	by localhost (krisma.oltrelinux.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 15978-03 for <list@krisma.oltrelinux.com>;
	Thu, 27 Jan 2005 14:52:04 +0100 (CET)
Received: from aj.catt.com (aj.catt.com [64.18.103.6])
	by mail.oltrelinux.com (Postfix) with ESMTP id D9D8C11AE75
	for <list@krisma.oltrelinux.com>; Thu, 27 Jan 2005 14:52:03 +0100 (CET)
Received: from aj.catt.com (localhost [127.0.0.1])
	by aj.catt.com (Postfix) with ESMTP id 00DD615DF33;
	Thu, 27 Jan 2005 08:51:56 -0500 (EST)
Received: from cantillo.uniqmail.ch (mail.uniqmail.ch [212.55.198.173])
	by aj.catt.com (Postfix) with ESMTP id 8831915DF2C
	for <clamav-devel@lists.clamav.net>;
	Thu, 27 Jan 2005 08:51:52 -0500 (EST)
Received: (qmail 938 invoked from network); 27 Jan 2005 13:51:51 -0000
Received: from zhenge-fw1.cyberlink.ch (HELO uniqmail.ch) (193.246.253.9)
	by cantillo.uniqmail.ch with AES256-SHA encrypted SMTP;
	27 Jan 2005 13:51:51 -0000
Message-ID: <41F8F0BC.5060204@uniqmail.ch>
Date: Thu, 27 Jan 2005 14:46:36 +0100
From: Ramon Amat <amat@uniqmail.ch>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ClamAV Development <clamav-devel@lists.clamav.net>
Subject: Re: [Clamav-devel] Sending SCAN command multiple times on the same
	socket fails.
References: <41F6B723.70706@uniqmail.ch>	<1106692572.5014.1.camel@mac.bandsman.co.uk>	<41F76489.6080805@uniqmail.ch>	<1106732754.14592.5.camel@syntax>
	<41F8CDFF.9080304@uniqmail.ch>	<1106825270.17817.23.camel@syntax>
	<41F8D2B0.2030309@uniqmail.ch> <1106826847.17817.30.camel@syntax>
In-Reply-To: <1106826847.17817.30.camel@syntax>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: clamav-devel@lists.clamav.net
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: ClamAV Development <clamav-devel@lists.clamav.net>
List-Id: ClamAV Development <clamav-devel.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-devel@lists.clamav.net>
List-Help: <mailto:clamav-devel-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=subscribe>
Sender: clamav-devel-bounces@lists.clamav.net
Errors-To: clamav-devel-bounces@lists.clamav.net

>
>
>>What makes you think, that this will fix the problem ? I am using 0.8.
>>    
>>
>
>Because I did some last minute fixes to SESSION mode.
>
>-trog
>

I followed your advice and downloaded the latest clamav version
Released at Wed, 26 Jan 2005 19:58:37 GMT by nervoso

Afterwards I have uncommented to make the socket non-blocking.

     mSocket.sCreate();
   /* mSocket.setNonBlocking(); */
     mSocket.sConnect(mSocketPath.c_str());
     mSocket.sWrite("SESSION");
     ...
    // Scan request
   mSocket.sWrite(pathName);
   std::string buf;
   mSocket.sRead( buf );                 <--- It block again here ... sorry.

When I stop and restart clamav the first request get's (sometimes) 
blocked for ever --- not always.

Kind regards Ramon


_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel

