Török Edvin
da3e0e4036
fix documentation, fix warnings.
...
git-svn: trunk@5025
16 years ago
Török Edvin
b6de553d58
set timeout to readtimeout after receiving a chunk (bb #1540 ).
...
better checks and documentation for MaxQueue (bb #1521 ).
git-svn: trunk@5023
16 years ago
Török Edvin
4b93f2b633
check for mallinfo availability (bb #1445 ).
...
git-svn: trunk@5001
16 years ago
Török Edvin
9390411bf0
Automatically fix MaxQueue settings (bb #1521 ).
...
Also use rlim_cur instead of rlim_max, because that is what the kernel enforces.
git-svn: trunk@5000
16 years ago
Tomasz Kojm
0dcb7037d6
clamd/session.c: respect TemporaryDirector in cli_gentempfd()
...
git-svn: trunk@4997
16 years ago
Török Edvin
0dd49673a0
fix build when poll is not available.
...
git-svn: trunk@4966
16 years ago
Török Edvin
59deef7d8c
print N/A if libc memory usage is not available (bb #1445 ).
...
git-svn: trunk@4951
16 years ago
Török Edvin
c9954509cc
better detect half-shut vs. full-shutdown sockets (bb #1441 )
...
git-svn: trunk@4948
16 years ago
Török Edvin
7ff6ec039c
better fix for bb #1446 , try not to get confused by half-shut sockets (bb #1441 ).
...
git-svn: trunk@4947
16 years ago
Török Edvin
01cc87e1b4
typo
...
git-svn: trunk@4945
16 years ago
Török Edvin
b4ea33b23b
fix handling of multiple ExcludePath entries.
...
git-svn: trunk@4944
16 years ago
Török Edvin
36e4bc1467
stop scanning when client disconnects (bb #1446 ).
...
git-svn: trunk@4940
16 years ago
Tomasz Kojm
2accc66fef
libclamav, clamd, clamscan: replace cl_engine_(set|get) with cl_engine_set_(num|str) and cl_engine_get_(num|str)
...
git-svn: trunk@4933
16 years ago
Török Edvin
de5f850d16
fix previous commit
...
git-svn: trunk@4928
16 years ago
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
16 years ago
Török Edvin
39b84970e1
new clamd command: nVERSIONCOMMANDS (bb #1437 ).
...
git-svn: trunk@4922
16 years ago
Török Edvin
b0e57898e8
fix FILDES and make check on NetBSD. (bb #1411 ).
...
git-svn: trunk@4905
16 years ago
Török Edvin
f8e8ab4fd9
wake recvloopth after SelfCheck (if set), to avoid reloading the DB
...
just before next scan request.
git-svn: trunk@4904
16 years ago
Tomasz Kojm
99f817e731
libclamav: introduce cl_engine_settings_* API calls for copying settings between engines
...
clamd/server-th.c: respect original engine settings after db reload (bb#1380)
git-svn: trunk@4885
16 years ago
aCaB
5348fa8d28
bb#1443
...
please don't touch the build stuff for a coupel of hours so i can easily revert this commit
git-svn: trunk@4884
16 years ago
Török Edvin
1c3895a69f
downgrade warning message (bb #1433 ).
...
git-svn: trunk@4878
16 years ago
Török Edvin
14896add0b
force alignment of ancillary data buffer (bb #1425 ).
...
git-svn: trunk@4858
16 years ago
Tomasz Kojm
6670464f91
update help pages
...
git-svn: trunk@4855
16 years ago
Török Edvin
3dc90d4a30
stop scanning when client disconnects in multiscan mode (bb #1417 ).
...
git-svn: trunk@4847
16 years ago
Török Edvin
8db0a3463d
clamdtop moved to toplevel + manpage.
...
git-svn: trunk@4846
16 years ago
Török Edvin
a1c9ad2cf3
fix distcheck.
...
git-svn: trunk@4836
17 years ago
Török Edvin
5d34634e5d
move the command parsing, and stream handling code into their own functions.
...
No functionality change.
git-svn: trunk@4834
17 years ago
Török Edvin
f36d8f928d
fix NetBSD build
...
git-svn: trunk@4832
17 years ago
Török Edvin
31d5b62ceb
real fix for BB #1403 .
...
git-svn: trunk@4829
17 years ago
Török Edvin
a414efbf5e
revert previous commit, it is the wrong fix.
...
git-svn: trunk@4828
17 years ago
Török Edvin
a1f0c01189
Fix wrong use of strerror_r: it doesn't have to use/fill the buffer,
...
it can return a pointer to a static location, as described in the manpage.
This can happen on a Linux system with a foreign locale, where the LANG=C messages are
returned this way. (BB #1403 )
git-svn: trunk@4827
17 years ago
Török Edvin
4d26118b95
In single INSTREAM mode, remove FD from polled set (BB #1410 )
...
Fix testcase, INSTREAM should say UNKNOWN COMMAND in old mode and close conn, sending
anything after it will likely result in a broken pipe.(BB #1407 )
git-svn: trunk@4826
17 years ago
Török Edvin
b82eea8de0
signals may not wake a poll(), so make sure thread wakes up (BB #1400 ).
...
git-svn: trunk@4816
17 years ago
Török Edvin
537292a773
Reject new commands sent as new-style commands to avoid confusion.
...
This means that IDSESSION/INSTREAM must be sent as nIDSESSION\n or zIDSESSION\0,
ditto for INSTREAM.
Adjust testcases accordingly.
Old commands are still accepted when sent without delimiter.
git-svn: trunk@4811
17 years ago
Török Edvin
e114b109c4
fix use of uninitialized value.
...
add test for STREAM.
fix missing closing pragmas.
git-svn: trunk@4810
17 years ago
Török Edvin
ef49ed625f
fix compiler warning
...
git-svn: trunk@4808
17 years ago
Török Edvin
625377ab50
add missing parameter
...
git-svn: trunk@4807
17 years ago
Török Edvin
fb6fe4f5d1
Introduce '$' in logg, it is active when logg_verbose=2, i.e. when Debug yes.
...
Fix leak reported by valgrind.
git-svn: trunk@4806
17 years ago
Török Edvin
c5355aedbd
make sending ancillary data at wrong time a protocol error.
...
change testcase accordingly.
git-svn: trunk@4805
17 years ago
Török Edvin
af309677da
sendtimeout
...
git-svn: trunk@4804
17 years ago
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
17 years ago
Török Edvin
456e31a3cb
fix typo.
...
add another stress test.
Don't leak file descriptors.
Fix IDSESSION delimiter handling.
git-svn: trunk@4800
17 years ago
Török Edvin
b25fdae488
fix valgrind warning about locking order
...
git-svn: trunk@4799
17 years ago
Török Edvin
0378a9ab77
introduce timeouts for send(), this is needed for IDSESSION to work reliably,
...
since a buggy client implementation may get stuck in send(), and then clamd
gets stuck in send() -> deadlock. To avoid this we need nonblocking sockets, and
(low) timeouts on send.
Add more tests for clamd protocol, including a stress test for IDSESSION.
git-svn: trunk@4798
17 years ago
Török Edvin
4e24a36173
add more unit tests.
...
Make handling of old-style commands compatible with old clamd: if they have a \n
that will delimit the command.
If multiscan of a single file encounters errors, don't reply OK too.
git-svn: trunk@4796
17 years ago
Török Edvin
b3b8212f7f
make clamdtop use IDSESSION, and enable VERSION/STATS inside IDSESSION.
...
git-svn: trunk@4789
17 years ago
Török Edvin
80681b50c7
Initialize mutex.
...
Fix poll_fd to properly lock/unlock mutex.
This fixes the STREAM command.
git-svn: trunk@4787
17 years ago
Török Edvin
36784cad4b
fix nFILDES command
...
git-svn: trunk@4783
17 years ago
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