February 23, 2009
View 3dc90d4

stop scanning when client disconnects in multiscan mode (bb #1417).

Török Edvin authored on 2009/02/23 21:35:40
February 19, 2009
View 31d5b62

real fix for BB #1403.

Török Edvin authored on 2009/02/19 04:26:30
View a414efb

revert previous commit, it is the wrong fix.

Török Edvin authored on 2009/02/19 04:11:21
View a1f0c01

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)

Török Edvin authored on 2009/02/19 04:08:15
February 18, 2009
View 537292a

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.

Török Edvin authored on 2009/02/18 03:04:48
View fb6fe4f

Introduce '$' in logg, it is active when logg_verbose=2, i.e. when Debug yes. Fix leak reported by valgrind.

Török Edvin authored on 2009/02/18 00:59:36
February 17, 2009
View 0378a9a

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.

Török Edvin authored on 2009/02/17 03:27:08
View 4e24a36

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.

Török Edvin authored on 2009/02/17 03:26:58
February 15, 2009
View b3b8212

make clamdtop use IDSESSION, and enable VERSION/STATS inside IDSESSION.

Török Edvin authored on 2009/02/15 01:13:38
February 13, 2009
View 086eab5

update old copyright headers

Tomasz Kojm authored on 2009/02/13 19:55:45
View 034994b

fdpassing is now in others.c instead of session.c, move the defines.

Török Edvin authored on 2009/02/13 17:41:59
View 9ac109f

add missing include

Török Edvin authored on 2009/02/13 17:01:12
View 949c6fe

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

Török Edvin authored on 2009/02/13 01:51:09
December 18, 2008
View 064b4a0

initial version of the unified option parser (bb#1215)

Tomasz Kojm authored on 2008/12/18 06:42:54
November 13, 2008
View 370892d

clamscan, clamd: use the new API; drop the hardcoded default limits and use the ones set in cl_engine_new()

Tomasz Kojm authored on 2008/11/13 01:19:43