Comments (10)
@kesavankrishnan, You can change the StreamMaxLength
setting under /etc/clamav/clamd.conf
to fix the issue.
from quahog.
Did that fix your problem @kesavankrishnan ?
from quahog.
@MassiveHiggsField Yes, Actually i opened socket before file upload into server and then start scanning once uploaded. Socket broken issue happened due to the large files take more time and size. So i changed as like , open the socket and scanning process immediately .
from quahog.
👍 thanks @veewee
from quahog.
Thanks @veewee
from quahog.
I'm using ClamAV 0.103.2/26314.
StreamMaxLength is kept 500M.when I'm trying to scan 90MB file it's giving me the following status and error message.
WARNING and Broken pipe (Write failed).
from quahog.
@shireeshakalle
Please check this comment #30 (comment)
#30 (comment)
from quahog.
@kesavankrishnan i have already changed the value of StreamMaxLength to 500M and trying to upload 90MB file.
from quahog.
@shireeshakalle Could you share the code to understand more on it.
from quahog.
Hi kesavan
please find the following code which I'm using
public static boolean isFileInfected(File file ) {
boolean ifFileInfected = false;
try {
ifFileInfected = false;
logger.debug("inside checkForclamAv.. ");
// ClamAvScanner scanner = new ClamAvScanner("127.0.0.1", 3310);
ClamAvScanner scanner = new ClamAvScanner("localhost", 3310, 5000);
boolean isclamScannerAvailable = scanner.ping();
logger.debug(isclamScannerAvailable + "is clam scanner Available");
if (isclamScannerAvailable) {
ScanResult result = scanner.scan(file);
logger.debug("result.getStatus ....." + result.getStatus());
if (result.getStatus() == ScanResult.Status.PASSED) {
logger.debug("No Virus...");
ifFileInfected = false;
} else if (result.getStatus() == ScanResult.Status.INFECTED) {
logger.debug("No Virus...");
ifFileInfected = true;
} else {
ifFileInfected = true;
logger.debug(
"inside warning ......" + result.getStatus() + "Error message..." + result.getMessage());
}
}
} catch (Exception e) {
logger.error("error to connect..." + e.getMessage());
e.printStackTrace();
}
return ifFileInfected;
}
from quahog.
Related Issues (17)
- Clamd sometimes returns a NULL response; should be handled HOT 3
- Factory not found
- Update of dependencies HOT 6
- scanFile returns Permission Denied error HOT 4
- Session mode broken over tcp HOT 7
- Builds on Travis CI are very slow HOT 4
- Explain start/stop Session methods in README HOT 2
- Update of PHPUnit to 5.7 HOT 2
- php 7.1 HOT 1
- Socket operation failed: Broken pipe (SOCKET_EPIPE) ON Big file Scanning HOT 3
- How to connect using IP:PORT using TCPv4, but not Unix socket? HOT 3
- can you please make a tag of the latest changes? HOT 4
- Multiple uploaded files HOT 6
- Deprecation Error by default HOT 5
- Update to php 8.1 and 8.2 HOT 2
- Support for PSR7 streams
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quahog.