Török Edvin
ff989b7d75
deadbeef code was not completely reverted from clamdscan.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4726 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
3f26090eb7
clamdscan doesn't give us any deadbeef any more, so don't look for it.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4725 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
00eab4092f
clamd/others.c: handle multiple %v parameters
...
clamd/server-th.c: fix dbstat memleak
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4724 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
c73edc125e
Reject invalid minport/maxport in clamd.conf, instead of silently replacing them
...
with "good" values.
Simplify rest of the code a bit.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4723 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
d923741467
typo
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4722 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
544e7fd814
allow clamd to be stopped and backgrounded
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4721 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
30e36bfb5c
fix build
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4720 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
83c52f7eb5
error paths and other fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4719 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4f266591a0
fix INSTREAM when not in IDSESSION mode
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4718 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
e640277428
fix INSTREAM/IDSESSION.
...
Introduced a chunksize marker.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4717 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
b3acc38251
#ifdef HAVE_UNISTD_H
...
git-svn: trunk@4716
17 years ago
Török Edvin
467ac26c95
fix INSTREAM end handling
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4715 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
0cac67ab4c
fix use-after-free
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4714 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
76f21b4a30
introduce RR of connections.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4713 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
fdbaba8d49
always allocate a jobgroup, that way on shutdown we are sure
...
that it doesn't dissappear.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4712 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
e066e3cb47
unify thresholds
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4711 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
e001f2838e
Use 2 queues: one for single, one for bulk messages.
...
Also introduce MaxQueue, this will prevent clamdscan from flooding
clamd with too many FILDES requests.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4710 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4cc08c8c1c
init chunksize
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4709 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
c72f64c85c
mask sigpipe
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4708 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
533fa89515
do not infloop
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4707 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4ca3fc953f
close FD when we refuse to process command.
...
Print errno in clamdscan.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4706 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
9877f2d823
honour StreamMaxLen
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4705 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
284982ca3e
another open
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4704 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
acd4d7aa78
typo
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4703 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
228d7e1929
open fix
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4702 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
fadd3046fc
fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4701 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
6ef6ea829d
handle end of session
...
handle EOF on dspresult
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4700 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
4a9f787366
fully parse results in fake multi mode
...
misc fixes
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4699 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
fd468937fc
keep MODE_WAITREPLY in select still, so if garbage is sent we can close.
...
Though when poll says that socket is closed, we shouldn't try closing again
if we're in WAIT_REPLY mode (since we alraedy closed it from another thread).
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4698 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
07ac8bb23a
also remove socket from tracked sockets after switching mode to WAITREPLY.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4697 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
869d03832d
add proto debug messages to LogVerbose temporarely
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4696 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
33019f0a18
properly initalize fd_buf slot, even when reusing slot.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4695 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
ea2799a262
minor fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4694 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
f687013351
IDSESSION + INSTREAM sport
...
tidy
(smthng still fuxxxd up)
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4693 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
8f74b8e4ee
handle multiple commands and ancillary data in one packet
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4692 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
f022339bfc
initialize all fields
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4691 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
8eac8d3e88
fix FILDES infloop
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4690 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
d00d2c3727
calling dspresult
...
this is all skrewed up atm
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4689 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
d888e42724
dspresult
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4688 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
86c97e7e26
shared/optparser.c, clamconf: handle clamav-milter.conf in --generate-config
...
git-svn: trunk@4687
17 years ago
Tomasz Kojm
b89efa061f
etc/clamav-milter.conf: fix typos
...
git-svn: trunk@4686
17 years ago
Török Edvin
060c6715bb
introduce MODE_WAITREPLY.
...
MULTISCAN now quits if client quits
(TODO: CONTSCAN/SCAN should have a group too!)
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4685 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
8d66a87ed4
really fix multiscan
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4684 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4c59bda1ef
symlink flags for cli_ftw
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4683 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
2ea8946280
don't execute commands if client disconnected.
...
fix MULTISCAN
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4682 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
ef4ed2e180
preliminary INSTREAM support.
...
TODO: the code starts to look ugly, clean up the code.
INSTREAM shouldn't reply fd[]
make jobgroup own the resources (sockets, tempfiles)
allow to notify jobgroup to terminate when remote disconnects
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4681 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
428efe72d4
close connection when we see invalid command in IDSESSIOn
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4680 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
54c1f41b34
unify replies: add ids on all replies from IDSESSION.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4679 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
89bebd3428
fix duplicate symbol error when linking with LTO.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4678 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
befa580a23
initial idsession implementation
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4677 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago