Török Edvin
d0f6ecae1c
Never close a file descriptor that is monitored using
...
poll()/select() from another thread.
It introduces subtle bugs.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4742 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
ba2cf44051
updated clamd proto documentation
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4741 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
f17400cf3c
docs updated
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4740 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
6a779d4469
add beenthere
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4739 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
140237e4bf
#ifdef HAVE_UNISTD_H
...
git-svn: trunk@4738
17 years ago
Török Edvin
f243f00fc5
fix some races reported by valgrind
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4737 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
ae083d79ff
downgrade message
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4736 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
b7990b9ca1
don't stat
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4735 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
bac978a8f8
move the break to the proper place, so we don't parse same command twice!
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4734 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
730d97fb2b
inv cmd
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4733 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
0c8c3a5463
fix use-after-free
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4732 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
72a82dd679
libclamav/cvd.c: fix warning when cvd timestamp is in the future (bb#1381)
...
git-svn: trunk@4731
17 years ago
Tomasz Kojm
f295ee2253
libclamav/filetypes_int.h: sync with daily.ftm
...
git-svn: trunk@4730
17 years ago
aCaB
2097428fa7
fix the math
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4729 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
699bfc282c
dumpname(filename) is going to be dispatched, don't allow a later error path to
...
free it.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4728 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
91cafbe095
break loop
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4727 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
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