Török Edvin
bfd89d7c84
fix Solaris build
...
git-svn: trunk@4776
17 years ago
Tomasz Kojm
086eab5c26
update old copyright headers
...
git-svn: trunk@4775
17 years ago
Török Edvin
034994bd9c
fdpassing is now in others.c instead of session.c, move
...
the defines.
git-svn: trunk@4774
17 years ago
Török Edvin
9ac109f338
add missing include
...
git-svn: trunk@4773
17 years ago
Török Edvin
40331c57f0
add missing include
...
git-svn: trunk@4772
17 years ago
Török Edvin
4fd2ccf0ea
fix distcheck
...
git-svn: trunk@4771
17 years ago
Török Edvin
208bce76f9
remove nonexistent symbol to make Solaris linker happy.
...
git-svn: trunk@4770
17 years ago
Török Edvin
7a997ac950
move TCP socket creation to shared/
...
git-svn: trunk@4769
17 years ago
Török Edvin
6e3256f492
Unify error paths.
...
Remove unix socket we created if startup fails due to invalid config.
git-svn: trunk@4768
17 years ago
Török Edvin
08c9ac85c2
fix
...
git-svn: trunk@4767
17 years ago
Török Edvin
2a6bd14bc2
make prototype compatible with that declared in system headers. (bb #1383 )
...
git-svn: trunk@4766
17 years ago
Török Edvin
cfd6bc264c
fix valgrind warning (bb #1371 )
...
git-svn: trunk@4765
17 years ago
Török Edvin
8cad8e8323
fix distcheck errors
...
git-svn: trunk@4764
17 years ago
Török Edvin
05a213b850
add another missing file
...
git-svn: trunk@4763
17 years ago
aCaB
ecbbc8c452
fix spam
...
git-svn: trunk@4762
17 years ago
Török Edvin
4cc952e322
add check for msg.controllen, apparently Mac OS X sets it to 0,
...
but CMSG_FIRSTHDR is not NULL!
git-svn: trunk@4761
17 years ago
Török Edvin
357f2f4e04
add missing file
...
git-svn: trunk@4760
17 years ago
Török Edvin
ab1ed22fbf
fix merge mistake
...
git-svn: trunk@4759
17 years ago
Török Edvin
7bea419ef3
revert accidental makefile change
...
git-svn: trunk@4758
17 years ago
Török Edvin
3e2b50465b
add some unit tests for the new clamd protocol
...
git-svn: trunk@4757
17 years ago
aCaB
7609af89f2
merge from clamd-proto branch:
...
handle multiple %v parameters
introduce poll_fds that also does the read into a buffer
introduce thrmgr_group* commands for keeping track of groups of commands
(multiscan, IDSESSION)
introduce 2 queues in thrmgr, multiscan queues get lower priority. Commands
are processed from both queues in a 4:1 ratio to avoid starvation.
unify reply code: conn_reply*
unify scanner code into scan_callback that is called from cli_ftw
multiscan doesn't need stat() now if readdir() provides dt_type
redesign clamd main loop: there is now an accept thread, and a
recv()/dispatch thread, +MaxThreads worker (scanner) threads.
introduce limiting on commands when worker threads are contended.
introduce IDSESSION, a replacement for the old SESSION command, that allows
asyncronous (scan) commands and scan replies
introduce INSTREAM that allows sending the data to scan on same connection
(vs STREAM that requires another port)
introduce zCOMMANDS
git-svn: trunk@4756
17 years ago
Török Edvin
949c6fe54f
merge from clamd-proto branch:
...
handle multiple %v parameters
introduce poll_fds that also does the read into a buffer
introduce thrmgr_group* commands for keeping track of groups of commands
(multiscan, IDSESSION)
introduce 2 queues in thrmgr, multiscan queues get lower priority. Commands
are processed from both queues in a 4:1 ratio to avoid starvation.
unify reply code: conn_reply*
unify scanner code into scan_callback that is called from cli_ftw
multiscan doesn't need stat() now if readdir() provides dt_type
redesign clamd main loop: there is now an accept thread, and a
recv()/dispatch thread, +MaxThreads worker (scanner) threads.
introduce limiting on commands when worker threads are contended.
introduce IDSESSION, a replacement for the old SESSION command, that allows
asyncronous (scan) commands and scan replies
introduce INSTREAM that allows sending the data to scan on same connection
(vs STREAM that requires another port)
introduce zCOMMANDS
git-svn: trunk@4755
17 years ago
Török Edvin
e5e4a55410
merge from clamd-proto branch: introduce cli_ftw
...
git-svn: trunk@4754
17 years ago
Török Edvin
004f8386ce
output "stream" instead of "fd[]" for INSTREAM.
...
Add INSTREAM command test.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4753 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
d66eff0ace
initial version of clamd proto tests
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4752 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
ee6702abf5
unify actions
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4751 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
c5a47c1922
add some more suppressions
...
git-svn: trunk@4750
17 years ago
Tomasz Kojm
871177cdd9
return codes cleanup (bb#1159)
...
git-svn: trunk@4749
17 years ago
Török Edvin
9f0a28adcb
actually use the flags we calculated!
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4748 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
97ff73f97a
add some minimal tests for new clamd/clamdscan features
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4747 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
0115f12ffc
fix some more warnings
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4746 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
10ab5e32f4
fix some compiler warnings
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4745 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
95f258668c
add some more suppressions
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4744 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
9ef7e0bdae
fix memory leaks
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4743 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
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