From gordon@hammy.burditt.org  Wed Dec  8 17:39:25 2004
Return-Path: <gordon@hammy.burditt.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 737DC16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Dec 2004 17:39:25 +0000 (GMT)
Received: from hammy.burditt.org (hammy.burditt.org [206.138.224.67])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 318BC43D62
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Dec 2004 17:39:25 +0000 (GMT)
	(envelope-from gordon@hammy.burditt.org)
Received: from gordon by hammy.burditt.org with local (Exim 4.43 (FreeBSD))
	id 1Cc5md-000IkE-Nb; Wed, 08 Dec 2004 11:39:23 -0600
Message-Id: <E1Cc5md-000IkE-Nb@hammy.burditt.org>
Date: Wed, 08 Dec 2004 11:39:23 -0600
From: Gordon Burditt <gordon@burditt.org>
Sender: Gordon Burditt <gordon@hammy.burditt.org>
Reply-To: Gordon Burditt <gordon@burditt.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gordon@burditt.org
Subject: clamav socket problem 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         74857
>Category:       ports
>Synopsis:       clamav socket problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 08 17:40:11 GMT 2004
>Closed-Date:    Tue Nov 29 17:30:02 GMT 2005
>Last-Modified:  Tue Nov 29 17:30:02 GMT 2005
>Originator:     Gordon Burditt
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD hammy.burditt.org 4.9-STABLE FreeBSD 4.9-STABLE #7: Sat Nov 22 14:13:11 CST 2003 gordon@hammy.burditt.org:/scratch5/i386-obj/usr/src/sys/HAMMY i386


	
	FreeBSD 4.9, clamav port 0.80_1

>Description:
	
	When used with Exim, clamd repeatedly reports "client disconnected",
	while Exim reports it is unable to read from the socket
	(no such file or directory).  Some scanning is done properly,
	though.

>How-To-Repeat:
	
	I just used the same setup with Exim and exiscan to scan
	mail through clamd that I have used previously with clamav 0.74,
	which did not show the problem.
>Fix:

	
	The problem appears to be is_fd_connected(), which is
	falsely indicating the socket is disconnected, causing clamd
	to emit the "client disconnected" message, and it closes the
	socket, causing Exim to complain about reading the response back.

	I stuck a "return 1;" in is_fd_connected() so it ALWAYS returns 1.
	This fixed the problem.  Obviously it is not a very clean fix.

	Note:  clamav-config.h has HAVE_POLL defined as 1 and HAVE_POLL_H
	undefined, so is_fd_connected() is using the select() version
	of the code.

					Gordon L. Burditt
>Release-Note:
>Audit-Trail:

From: "Volker Stolz" <vs@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, gordon@burditt.org,
	rob@debank.tv
Cc:  
Subject: Re: ports/74857: clamav socket problem
Date: Thu, 09 Dec 2004 09:36:08 +0100

 Dear maintainer, please look into this issue!
 
 Volker
State-Changed-From-To: open->feedback 
State-Changed-By: vs 
State-Changed-When: Thu Dec 9 08:42:14 GMT 2004 
State-Changed-Why:  
Forwarded PR to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74857 
State-Changed-From-To: feedback->suspended 
State-Changed-By: pav 
State-Changed-When: Tue Feb 8 19:57:20 GMT 2005 
State-Changed-Why:  
Suspended, no activity in past two months. Awaiting patches or resolution. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74857 
State-Changed-From-To: suspended->closed 
State-Changed-By: flz 
State-Changed-When: Tue Nov 29 17:29:40 GMT 2005 
State-Changed-Why:  
Feedback timeout.  Anyway this doesn't seem to be a FreeBSD-specific 
issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74857 
>Unformatted:
