Re: [Clamav-devel] Sending SCAN command multiple times on th…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ramon Amat
Date:  
To: ClamAV Development
Subject: Re: [Clamav-devel] Sending SCAN command multiple times on the same socket fails.
>
>
>>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